HttpClient

Constructors

this
this()
Undocumented in source.
this
this(HttpClientOptions c)
Undocumented in source.

Members

Aliases

Callback
alias Callback = void delegate()
Undocumented in source.

Functions

close
void close()
Undocumented in source. Be warned that the author may not have intended to support it.
connect
Future!(HttpClientConnection) connect(string host, int port)
Undocumented in source. Be warned that the author may not have intended to support it.
connect
void connect(string host, int port, Promise!(HttpClientConnection) promise)
Undocumented in source. Be warned that the author may not have intended to support it.
connect
void connect(string host, int port, Promise!(HttpClientConnection) promise, ClientHttp2SessionListener listener)
Undocumented in source. Be warned that the author may not have intended to support it.
destroy
void destroy()
Undocumented in source. Be warned that the author may not have intended to support it.
getCookieStore
CookieStore getCookieStore()
Undocumented in source. Be warned that the author may not have intended to support it.
getHttpOptions
HttpClientOptions getHttpOptions()
Undocumented in source. Be warned that the author may not have intended to support it.
initialize
void initialize()
Undocumented in source. Be warned that the author may not have intended to support it.
isConnected
deprecated bool isConnected()
Undocumented in source. Be warned that the author may not have intended to support it.
newCall
Call newCall(Request request)

Prepares the {@code request} to be executed at some point in the future.

newWebSocket
WebSocketConnection newWebSocket(Request request, WebSocketMessageHandler handler)

Uses {@code request} to connect a new web socket.

setOnClosed
void setOnClosed(Callback callback)
Undocumented in source. Be warned that the author may not have intended to support it.
useCookieStore
HttpClient useCookieStore()

Sets the handler that can accept cookies from incoming HTTP responses and provides cookies to outgoing HTTP requests.

useCookieStore
HttpClient useCookieStore(CookieStore store)

Variables

DEFAULT_CONNECT_TIMEOUT
enum Duration DEFAULT_CONNECT_TIMEOUT;
Undocumented in source.
DEFAULT_IDLE_TIMEOUT
enum Duration DEFAULT_IDLE_TIMEOUT;
Undocumented in source.

Meta