Go to the documentation of this file.
15 #ifndef _az_HTTP_TRANSPORT_H
16 #define _az_HTTP_TRANSPORT_H
21 #include <azure/core/_az_cfg_prefix.h>
65 } _az_http_request_header;
88 int32_t headers_length;
90 int32_t retry_headers_start_byte_offset;
99 typedef struct _az_http_policy _az_http_policy;
108 typedef AZ_NODISCARD
az_result (*_az_http_policy_process_fn)(
109 _az_http_policy* ref_policies,
118 struct _az_http_policy
122 _az_http_policy_process_fn process;
233 #include <azure/core/_az_cfg_suffix.h>
235 #endif // _az_HTTP_TRANSPORT_H
AZ_INLINE az_http_method az_http_method_get()
HTTP GET method name.
Definition: az_http_transport.h:31
AZ_INLINE az_http_method az_http_method_head()
HTTP HEAD method name.
Definition: az_http_transport.h:36
AZ_NODISCARD az_result az_http_client_send_request(az_http_request const *request, az_http_response *ref_response)
Sends an HTTP request through the wire and write the response into ref_response.
az_span az_http_method
A type representing an HTTP method (POST, PUT, GET, DELETE, etc.).
Definition: az_http_transport.h:26
az_result
The type represents the various success and error conditions.
Definition: az_result.h:53
AZ_NODISCARD az_result az_http_request_get_method(az_http_request const *request, az_http_method *out_method)
Get method of an HTTP request.
Structure used to represent an HTTP request. It contains an HTTP method, URL, headers and body....
Definition: az_http_transport.h:79
AZ_INLINE az_http_method az_http_method_delete()
HTTP DELETE method name.
Definition: az_http_transport.h:51
AZ_NODISCARD az_result az_http_request_get_body(az_http_request const *request, az_span *out_body)
Get body from an HTTP request.
AZ_NODISCARD az_result az_http_response_append(az_http_response *ref_response, az_span source)
This function is expected to be used by transport adapters like curl. Use it to write content from so...
AZ_INLINE az_http_method az_http_method_post()
HTTP POST method name.
Definition: az_http_transport.h:41
An az_span represents a contiguous byte buffer and is used for string manipulations,...
AZ_INLINE az_http_method az_http_method_put()
HTTP PUT method name.
Definition: az_http_transport.h:46
This header defines the types and functions your application uses to leverage HTTP request and respon...
#define AZ_SPAN_FROM_STR(STRING_LITERAL)
Returns an az_span expression over a literal string.
Definition: az_span.h:125
A context is a node within a tree that represents expiration times and key/value pairs.
Definition: az_context.h:37
AZ_NODISCARD az_result az_http_request_get_header(az_http_request const *request, int32_t index, az_span *out_name, az_span *out_value)
Gets the HTTP header by index.
AZ_NODISCARD int32_t az_http_request_headers_count(az_http_request const *request)
Returns the number of headers within the request.
AZ_NODISCARD az_result az_http_request_get_url(az_http_request const *request, az_span *out_url)
Get the URL from an HTTP request.
AZ_INLINE az_http_method az_http_method_patch()
HTTP PATCH method name.
Definition: az_http_transport.h:56
Allows you to parse an HTTP response's status line, headers, and body.
Definition: az_http.h:157
Represents a "view" over a byte buffer that represents a contiguous region of memory....
Definition: az_span.h:33