Initializer
Parser(FileDescriptor socket)
Attributes
headersSource Codeshared LinkedList<Header> headers

List of headers parsed.

headersByNameSource Codeshared MutableMap<String,Header> headersByName

Map of headers parsed, by name.

Inherited Attributes
Attributes inherited from: Object
Methods
parseChunkHeaderSource Codeshared Integer parseChunkHeader(Boolean firstChunk)

Parses a chunk header, starting with a CRLF if firstChunk is false. Returns the next chunk's size.

Throws
  • Exception

    If the chunk header could not be parsed.

parseChunkTrailerSource Codeshared void parseChunkTrailer()

Parses a chunk trailer: optional headers.

Throws
parseHeadersSource Codeshared void parseHeaders()

Parses a list of headers until a CRLF CRLF sequence

Throws
parseResponseSource Codeshared Response parseResponse()

Parses an HTTP Response until the end of headers.

Throws
Inherited Methods
Methods inherited from: Object