Http module

expect_redirect

procedure · 1 overloadSource

The response redirects (3xx, or exactly status when given) to location.

expect_redirect :: (
    response: Client_Response,
    location: string,
    status := 0,
    loc := #caller_location
) -> bool

The response redirects (3xx, or exactly status when given) to location.

Parameters

response: Client_Response
location: string
the Location the response must have.
status := 0
the exact status wanted. 0 accepts any 3xx.
loc := #caller_location

Returns

bool

See also