HttpMessageParser.parseRequest

Parses message request (request line + headers).

  1. long parseRequest(T buffer, ulong lastPos)
  2. long parseRequest(T buffer)
    class HttpMessageParser
    long
    parseRequest
    (
    T
    )
    ()
    if (
    isArray!T &&
    (
    is(Unqual!(ForeachType!T) == char) ||
    is(Unqual!(ForeachType!T) == ubyte)
    )
    )

Return Value

Type: long

* parsed message header length when parsed sucessfully * -ParserError on error (ie. -1 when message header is not complete yet)

Meta