parseResponse

Parse a byte stream into a Response struct.

The parser works to identify a minimum complete Response. If successful, it removes that chunk from "mb" and returns a Response struct. On failure it returns a ResponseType.Invalid Response and leaves "mb" untouched.

@trusted
Response
parseResponse
(
ref byte[] mb
)

Meta