Http module

expect_header

procedure · 2 overloadsSource

The response has the header, with exactly this value (any case in the name). For Content-Type a value without parameters matches the media type: "application/json" accepts application/json; charset=utf-8.

expect_header :: (
    response: Client_Response,
    name: string,
    value: string,
    loc := #caller_location
) -> bool

The response has the header, with exactly this value (any case in the name). For Content-Type a value without parameters matches the media type: "application/json" accepts application/json; charset=utf-8.

Parameters

response: Client_Response
name: string
value: string
loc := #caller_location

Returns

bool
expect_header :: (
    response: Client_Response,
    name: string,
    loc := #caller_location
) -> bool

The response has the header, whatever its value.

Parameters

response: Client_Response
name: string
loc := #caller_location

Returns

bool

See also