Interface MockHttpRequest

interface MockHttpRequest {
    body: any;
    metadata: any;
    method: HttpVerb;
    path: string;
    query_params: HashMap<string>;
    route_params: HashMap<string>;
    url: string;
}

Properties

body: any

Request body

metadata: any

Metadata associated with the request

method: HttpVerb

Request method

path: string

Matched handler path

query_params: HashMap<string>

Query parameters in the request URL

route_params: HashMap<string>

Route parameters set in the request URL

url: string

URL path requested