Skip to content

Commit

Permalink
feat(esp_http_client): Added http method REPORT
Browse files Browse the repository at this point in the history
Added support http REPORT method and tested it using local server.
Added test case for REPOPRT method in esp_http_client_example.c
The URL(httpbin.org) does not support for /report endpoint.

Closes #14147
  • Loading branch information
hrushikesh430 committed Jul 23, 2024
1 parent dcb34c5 commit 52cd896
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
3 changes: 2 additions & 1 deletion components/esp_http_client/esp_http_client.c
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,8 @@ static const char *HTTP_METHOD_MAPPING[] = {
"UNLOCK",
"PROPFIND",
"PROPPATCH",
"MKCOL"
"MKCOL",
"REPORT"
};

static esp_err_t esp_http_client_request_send(esp_http_client_handle_t client, int write_len);
Expand Down
1 change: 1 addition & 0 deletions components/esp_http_client/include/esp_http_client.h
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,7 @@ typedef enum {
HTTP_METHOD_PROPFIND, /*!< HTTP PROPFIND Method */
HTTP_METHOD_PROPPATCH, /*!< HTTP PROPPATCH Method */
HTTP_METHOD_MKCOL, /*!< HTTP MKCOL Method */
HTTP_METHOD_REPORT, /*!< HTTP REPORT Method */
HTTP_METHOD_MAX,
} esp_http_client_method_t;

Expand Down

0 comments on commit 52cd896

Please sign in to comment.