load

fun load(name: String): Fixture(source)

Loads the fixture at <root>/<name>.

Return

the parsed .http fixture, or the body-only fixture for any other extension.

Parameters

name

the resource's path below root, with forward slashes.

Throws

if name is empty or absolute, holds a backslash, or has an empty, . or .. segment.

if the resource is missing, cannot be read, or is a malformed .http file; the message names the resource and, for a syntax fault, the line.