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

Aliases Http1ReaderBase.checkEndOfHeaders

1
2
3

Documentation

Checks if the headers have ended.

State

This function must be called when the reader is in the maybeEndOfHeadersstate.

After this function is called, the reader will be in the bodystate if the headers have ended, or the headersstate if the headers have not ended.

Params

Throws

If an error occurs, the reader 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.badTransportif it is determined that the transport layer is in a bad state, or if the sender appears to be malicious/poorly coded.

Returns

A Resultdescribing if an error ocurred. Any Http1Errorwill contain a valid HTTP error response that can be sent to the client as-is.