5#include <system/globalization/culture_info.h>
6#include <system/io/stream.h>
7#include <system/shared_ptr.h>
8#include <system/timespan.h>
10#include <net/http/headers/http_request_headers.h>
11#include <net/http/http_completion_option.h>
12#include <net/http/http_content.h>
13#include <net/http/http_message_handler.h>
14#include <net/http/http_message_invoker.h>
15#include <net/http/http_request_message.h>
16#include <net/http/http_response_message.h>
17#include <net/http_request_exception.h>
19namespace System {
namespace Net {
namespace Http {
33 typedef ::System::BaseTypesInfo<BaseType> ThisTypeBaseTypesInfo;
35 ASPOSECPP_SHARED_RTTI_INFO_DECL();
93 bool _operationStarted;
103 int64_t _maxResponseContentBufferSize;
109 void SetOperationStarted();
112 void CheckDisposedOrStarted();
115 void CheckDisposed();
134 static struct __StaticConstructor__
136 __StaticConstructor__();
Represents a base class of an HTTP client for sending requests and receiving responses....
Definition: http_client.h:26
void CancelPendingRequests()
Cancels all pending requests.
System::SharedPtr< HttpResponseMessage > Send(System::SharedPtr< HttpRequestMessage > request, HttpCompletionOption completionOption)
Sends the specified HTTP request.
HttpClient()
Constructs a new instance.
void set_BaseAddress(System::SharedPtr< Uri > value)
Sets the base address of the resource that is used for sending requests.
TimeSpan get_Timeout()
Gets the timespan to wait before the request times out.
int64_t get_MaxResponseContentBufferSize()
Gets the maximum number of bytes of response content.
System::SharedPtr< Uri > get_BaseAddress()
Gets the base address of the resource that is used for sending requests.
void Dispose(bool disposing) override
Disposes the current instance. This method also disposes the handler if required.
HttpClient(System::SharedPtr< HttpMessageHandler > handler, bool disposeHandler)
Constructs a new instance.
void set_MaxResponseContentBufferSize(int64_t value)
Sets the maximum number of bytes of response content.
void set_Timeout(TimeSpan value)
Sets the timespan to wait before the request times out.
System::SharedPtr< Headers::HttpRequestHeaders > get_DefaultRequestHeaders()
Gets the headers sent with each request.
HttpClient(System::SharedPtr< HttpMessageHandler > handler)
Constructs a new instance.
Allows applications to call the Send method on an HTTP handler chain. Objects of this class should on...
Definition: http_message_invoker.h:16
Pointer class to wrap types being allocated on heap. Use it to manage memory for classes inheriting O...
Definition: smart_ptr.h:180
String class used across the library. Is a substitute for C# System.String when translating code....
Definition: string.h:122
Represents a time interval. This type should be allocated on stack and passed to functions by value o...
Definition: timespan.h:59
HttpCompletionOption
Indicates when an HttpClient operation should be completed.
Definition: http_completion_option.h:8
Definition: db_command.h:9