HTTPClientRequest

Represents a HTTP client request (as sent to the server).

Constructors

this
this(InterfaceProxy!Stream conn, TCPConnection raw_conn)

private

Members

Functions

writeBody
void writeBody(RandomAccessStream data)
void writeBody(InputStream data)
void writeBody(InputStream data, ulong length)
void writeBody(ubyte[] data, string content_type)

Writes the whole request body at once using raw bytes.

writeFormBody
void writeFormBody(T key_value_map)

Writes the request body as form data.

writeJsonBody
void writeJsonBody(T data, bool allow_chunked)

Writes the request body as JSON data.

writePart
void writePart(MultiPart part)
Undocumented in source. Be warned that the author may not have intended to support it.

Properties

bodyWriter
InterfaceProxy!OutputStream bodyWriter [@property getter]

An output stream suitable for writing the request body.

contentLength
long contentLength [@property getter]
long contentLength [@property setter]

Accesses the Content-Length header of the request.

localAddress
NetworkAddress localAddress [@property getter]
Undocumented in source. Be warned that the author may not have intended to support it.
peerCertificate
inout(TLSCertificateInformation) peerCertificate [@property getter]
Undocumented in source. Be warned that the author may not have intended to support it.
remoteAddress
NetworkAddress remoteAddress [@property getter]
Undocumented in source. Be warned that the author may not have intended to support it.

Meta