Represents an HTTP request.

interface HttpRequest {
    body?: string;
    headers: Record<string, string>;
    method: string;
    url: string;
}

Properties

Properties

body?: string

The HttpRequestBody to send to the server.

headers: Record<string, string>

The HTTP Headers of the request. Entries are expected to have the HTTP header as the key and its string content as the value.

method: string

The HTTP method of the request.

url: string

The URL of the request.