MsgParser.parseRequest

Parses message request (request line + headers).

  1. int parseRequest(T buffer, uint lastPos)
  2. int parseRequest(T buffer)
    struct MsgParser(MSG)
    int
    parseRequest
    (
    T
    )
    ()
    if (
    isArray!T &&
    (
    is(Unqual!(ForeachType!T) == char) ||
    is(Unqual!(ForeachType!T) == ubyte)
    )
    )

Return Value

Type: int

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

Meta