HttpMessageParser.parseResponse

Parses message response (status line + headers).

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

Return Value

Type: long

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

Meta