Marmos
v juptune
v asn1
v lang
v ast
v Classes
v Enums
v ir
v parser
v Enums
v Structs
v core
v crypto
v keyexchange
v memory
v data
v alphabet
v buffer
v json
v builder
v parser
v Enums
v Structs
v serialise
v Structs
v Templates
v pem
v Enums
v Structs

Functions Http1WriterBase.putRequestLine

1
2
3
4
5
6
7
module juptune.http.v1;

Result putRequestLine(
    char[] method, 
    char[] path, 
    Http1Version httpVersion
);

Documentation

Writes an entire request line. This will configure this writer to be a request writer for the remainder of the message, until finishMessageis called.

State

The writer must be in the startLinestate.

The writer will be in the headersstate after this function is called.

Params

Throws

If an error occurs, the writer will be in an invalid state and should not be used again.

Anything the underlying I/O functions can throw. See juptune.event.io.IoError.

Http1Error.badRequestMethodif the method is invalid.

Http1Error.badRequestPathif the path is invalid. See http1IsPathValidForMethod.

Http1Error.badRequestVersionif the HTTP version is invalid.

Returns

A Resultdescribing if an error ocurred. Any Http1Errorwill contain a valid HTTP error response.