HttpClient Class

Represents a HTTP/1.1 client.

Definition

Line 14 of System.Net.Http/HttpClient.cm

Constructors & Destructor

public HttpClient()
public HttpClient(const UriReference& baseAddress_)
public HttpClient(const UriReference& baseAddress_, StreamWriter* log_)

Member Functions

public inline nothrow const UriReference& BaseAddress() const
public void Connect()
public void Connect(const String<char>& node, const String<char>& service)
public HttpStatus Get(const UriReference& uri, HttpHeaderCollection& requestHeaders, HttpHeaderCollection& responseHeaders, SharedPtr<ByteStream>& body)
public HttpStatus Get(const UriReference& uri, HttpHeaderCollection& responseHeaders, SharedPtr<ByteStream>& body)
public void SetBaseAddress(const UriReference& baseAddress_)
public inline nothrow void SetLog(StreamWriter* log_)

Member Variables

private UriReference baseAddress
private StreamWriter* log
private SharedPtr<ByteStream> stream
private TcpClient tcpClient

Constructor& Destructor Details

HttpClient Constructor

public HttpClient()

Definition
Line 16 of System.Net.Http/HttpClient.cm


HttpClient Constructor

public HttpClient(const UriReference& baseAddress_)

Definition
Line 19 of System.Net.Http/HttpClient.cm


HttpClient Constructor

public HttpClient(const UriReference& baseAddress_, StreamWriter* log_)

Definition
Line 23 of System.Net.Http/HttpClient.cm


Member Function Details

BaseAddress Member Function

public inline nothrow const UriReference& BaseAddress()

Definition
Line 102 of System.Net.Http/HttpClient.cm


Connect Member Function

public void Connect()

Definition
Line 27 of System.Net.Http/HttpClient.cm


Connect Member Function

public void Connect(const String<char>& node, const String<char>& service)

Definition
Line 31 of System.Net.Http/HttpClient.cm


Get Member Function

public HttpStatus Get(const UriReference& uri, HttpHeaderCollection& requestHeaders, HttpHeaderCollection& responseHeaders, SharedPtr<ByteStream>& body)

Definition
Line 49 of System.Net.Http/HttpClient.cm


Get Member Function

public HttpStatus Get(const UriReference& uri, HttpHeaderCollection& responseHeaders, SharedPtr<ByteStream>& body)

Definition
Line 44 of System.Net.Http/HttpClient.cm


SetBaseAddress Member Function

public void SetBaseAddress(const UriReference& baseAddress_)

Definition
Line 106 of System.Net.Http/HttpClient.cm


SetLog Member Function

public inline nothrow void SetLog(StreamWriter* log_)

Definition
Line 110 of System.Net.Http/HttpClient.cm