1234567module juptune.http.v1;
Result putRequestLine(
char[] method,
char[] path,
Http1Version httpVersion
);
Writes an entire request line. This will configure this writer to be a request writer for the remainder of the message, until finishMessageis called.
The writer must be in the startLinestate.
The writer will be in the headersstate after this function is called.
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.
A Resultdescribing if an error ocurred. Any Http1Errorwill contain a valid HTTP error response.