HTTPTransaction

Members

Functions

onIngressBody
void onIngressBody(const ubyte[] chain, ushort padding)

Invoked by the session when some or all of the ingress entity-body has been parsed.

onIngressChunkComplete
void onIngressChunkComplete()

Invoked by the session when the CRLF terminating a chunk has been parsed.

onIngressChunkHeader
void onIngressChunkHeader(size_t length)

Invoked by the session when a chunk header has been parsed.

onIngressEOM
void onIngressEOM()

Invoked by the session when the ingress message is complete.

onIngressHeadersComplete
void onIngressHeadersComplete(HTTPMessage msg)

Invoked by the session when the ingress headers are complete

refreshTimeout
void refreshTimeout()

Schedule or refresh the timeout for this transaction

sendBody
void sendBody(in ubyte[] body_, bool iseom = false)

Send part or all of the egress message body to the Transport. If flow control is enabled, the chunk boundaries may not be respected. This method does not actually write the message out on the wire immediately. All writes happen at the end of the event loop at the earliest. Note: This method may be called zero or more times per message.

sendChunkHeader
void sendChunkHeader(size_t length)

Write any protocol framing required for the subsequent call(s) to sendBody(). This method does not actually write the message out on the wire immediately. All writes happen at the end of the event loop at the earliest. @param length Length in bytes of the body data to follow.

sendChunkTerminator
void sendChunkTerminator()

Write any protocol syntax needed to terminate the data. This method does not actually write the message out on the wire immediately. All writes happen at the end of the event loop at the earliest. Frame begun by the last call to sendChunkHeader().

sendEOM
void sendEOM()

Finalize the egress message; depending on the protocol used by the Transport, this may involve sending an explicit "end of message" indicator. This method does not actually write the message out on the wire immediately. All writes happen at the end of the event loop at the earliest.

sendHeaders
void sendHeaders(HTTPMessage headers)

Send the egress message headers to the Transport. This method does not actually write the message out on the wire immediately. All writes happen at the end of the event loop at the earliest. Note: This method should be called once per message unless the first headers sent indicate a 1xx status.

timeoutExpired
void timeoutExpired()

Timeout callback for this transaction. The timer is active while until the ingress message is complete or terminated by error.

Meta