Skip to content

Commit

Permalink
Options Http Enum add to Core (#5246)
Browse files Browse the repository at this point in the history
* Options Http Enum add

* spaces
  • Loading branch information
gearama authored Jan 10, 2024
1 parent 1a6b614 commit 7eeb609
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 1 deletion.
2 changes: 2 additions & 0 deletions sdk/core/azure-core/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@

## 1.11.0-beta.3 (Unreleased)

- Added 'OPTIONS' HTTP method to `Azure::Core::Http::HttpMethod` enum.

### Features Added

### Breaking Changes
Expand Down
6 changes: 6 additions & 0 deletions sdk/core/azure-core/inc/azure/core/http/http.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -159,6 +159,12 @@ namespace Azure { namespace Core { namespace Http {
*/
AZ_CORE_DLLEXPORT const static HttpMethod Patch;

/**
* @brief The representation of an `OPTIONS` HTTP method based on [RFC 2616]
* (https://datatracker.ietf.org/doc/html/rfc2616).
*/
AZ_CORE_DLLEXPORT const static HttpMethod Options;

private:
std::string m_value;
}; // extensible enum HttpMethod
Expand Down
1 change: 1 addition & 0 deletions sdk/core/azure-core/src/http/http.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ const HttpMethod HttpMethod::Post("POST");
const HttpMethod HttpMethod::Put("PUT");
const HttpMethod HttpMethod::Delete("DELETE");
const HttpMethod HttpMethod::Patch("PATCH");
const HttpMethod HttpMethod::Options("OPTIONS");

namespace {
bool IsInvalidHeaderNameChar(char c)
Expand Down
2 changes: 1 addition & 1 deletion sdk/core/azure-core/test/libcurl-stress-test/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ Where namespace will be created if missing , search directory can be any folder

ATM the docker image is build by hand and hard-coded in the chart to simplify matters.

To build the image run "docker build -t <acr>/azuresdkforcpp/curlstress:v8 --build-arg targetTest=azure-core-libcurl-stress-test --build-arg build=on ."
To build the image run "docker build -t <acr>/azuresdkforcpp/curlstress:v8 --build-arg targetTest=azure-core-libcurl-stress-test --build-arg build=on -f .\Dockerfile .\..\..\..\..\..\"

To push to mcr : "docker push <acr>/azuresdkforcpp/curlstress:v8"
Obviously after logging in to the acr "az acr login -n <acr>"
Expand Down

0 comments on commit 7eeb609

Please sign in to comment.