- addHeaders
void addHeaders(string[string] headers)
- clearHeaders
void clearHeaders()
Undocumented in source. Be warned that the author may not have intended to support it.
- close_connection_if_not_keepalive
void close_connection_if_not_keepalive(NetworkStream _stream)
If we do not want keepalive request,
or server signalled to close connection,
then close it
- exec_from_multipart_form
HTTPResponse exec_from_multipart_form(MultipartForm form)
Send multipart request.
You would like to use this method for sending large portions of mixed data or uploading files to forms.
Content of the posted form consist of sources. Each source have at least name and value (can be string-like object or opened file, see more docs for MultipartForm struct)
- exec_from_parameters
HTTPResponse exec_from_parameters()
- exec_from_range
HTTPResponse exec_from_range(InputRangeAdapter postData)
Undocumented in source.
- execute
HTTPResponse execute(Request r)
Undocumented in source. Be warned that the author may not have intended to support it.
- format
string format(string fmt)
Undocumented in source. Be warned that the author may not have intended to support it.
- removeHeaders
void removeHeaders(string[] headers)
Remove headers from request
- select_proxy
string select_proxy(string scheme)
Undocumented in source. Be warned that the author may not have intended to support it.
- toString
string toString()
Undocumented in source. Be warned that the author may not have intended to support it.
- proxy
string proxy [@property setter]
Undocumented in source. Be warned that the author may not have intended to support it.
- sslSetCaCert
string sslSetCaCert [@property setter]
Undocumented in source. Be warned that the author may not have intended to support it.
- sslSetCertFile
void sslSetCertFile(string p, SSLOptions.filetype t)
Undocumented in source. Be warned that the author may not have intended to support it.
- sslSetKeyFile
void sslSetKeyFile(string p, SSLOptions.filetype t)
Undocumented in source. Be warned that the author may not have intended to support it.
- sslSetVerifyPeer
bool sslSetVerifyPeer [@property setter]
Undocumented in source. Be warned that the author may not have intended to support it.
- uri
URI uri [@property setter]
Undocumented in source. Be warned that the author may not have intended to support it.
Request. Configurable parameters: method - string, method to use (GET, POST, ...) headers - stringstring, add any additional headers you'd like to send. authenticator - class Auth, class to send auth headers. keepAlive - bool, set true for keepAlive requests. default true. maxRedirects - uint, maximum number of redirects. default 10. maxHeadersLength - size_t, maximum length of server response headers. default = 32KB. maxContentLength - size_t, maximun content length. delault - 0 = unlimited. bufferSize - size_t, send and receive buffer size. default = 16KB. verbosity - uint, level of verbosity(0 - nothing, 1 - headers, 2 - headers and body progress). default = 0. proxy - string, set proxy url if needed. default - null. cookie - Tuple Cookie, Read/Write cookie You can get cookie setted by server, or set cookies before doing request. timeout - Duration, Set timeout value for connect/receive/send.