Defines common cross-platform macros, export decorators, and fundamental types.
#define DOTNETDUPE_API
Platform-specific linkage decoration for exporting or importing library symbols.
Represents an HTTP entity body and associated content headers.
Represents an HTTP request message adhering to RFC 9110 and RFC 9112.
Represents an HTTP response message adhering to RFC 9110 and RFC 9112.
Base object class for DotNetDupe mirroring .NET System.Object.
Provides reference-counted and weak pointer memory management primitives ensuring zero raw ownership.
High-performance UTF-8 / UTF-16 string manipulation class mirroring .NET System.String.
Provides client connections for TCP network services.
Provides an object representation of a Uniform Resource Identifier (URI) and easy access to its parts...
Provides methods for creating, manipulating, searching, and sorting arrays, thereby serving as the ba...
Represents a collection of keys and values.
HttpResponseMessagePtr Post(const String &requestUri, const HttpContentPtr &content)
Sends a POST request with content to the specified string Uri.
String GetString(const String &requestUri)
Sends a GET request to the specified URI and returns the response body as a string.
~HttpClient()
Releases unmanaged resources and destroys the HttpClient instance.
HttpClient()
Initializes a new instance of the HttpClient class.
HttpResponseMessagePtr Send(const HttpRequestMessagePtr &request)
Sends an HTTP request as an operation.
HttpResponseMessagePtr Delete(const String &requestUri)
Sends a DELETE request to the specified string Uri.
HttpResponseMessagePtr Get(const String &requestUri)
Sends a GET request to the specified string Uri.
Collections::Generic::Dictionary< String, String > & GetDefaultRequestHeaders()
Gets the headers which should be sent with each request.
Array< char > GetByteArray(const String &requestUri)
Sends a GET request to the specified URI and returns the response body as a byte array.
HttpResponseMessagePtr Put(const String &requestUri, const HttpContentPtr &content)
Sends a PUT request with content to the specified string Uri.
Provides client connections for TCP network services.
Supports all classes in the DotNetDupe class hierarchy.
A unified smart pointer that supports both unique and shared ownership semantics.
Represents text as a sequence of UTF-8 code units with culture-invariant operations.
Represents an object representation of a Uniform Resource Identifier (URI) and provides easy access t...
SmartPointer< HttpResponseMessage > HttpResponseMessagePtr
Type alias for reference-counted SmartPointer to HttpResponseMessage.
HttpCompletionOption
Indicates if HttpClient operations should be considered completed as soon as headers are read,...
@ ResponseContentRead
Operation should complete after reading the entire response including content.
@ ResponseHeadersRead
Operation should complete as soon as a response is available and headers are read.
SmartPointer< HttpContent > HttpContentPtr
Type alias for reference-counted SmartPointer to HttpContent.
SmartPointer< HttpRequestMessage > HttpRequestMessagePtr
Type alias for reference-counted SmartPointer to HttpRequestMessage.