parse

fun parse(bytes: ByteArray, origin: String = "<fixture>"): Fixture(source)

Parses the bytes of a .http file.

Return

the fixture.

Parameters

bytes

the file.

origin

the label the error message names, for example the resource name; <fixture> by default.

Throws

if bytes is not a well-formed .http file; the message names origin and, for a syntax fault, the line; never a header value or a body byte.