MsgParser.parseResponse

Parses message response (status line + headers).

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

Return Value

Type: int

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

Meta