Defines the structure of an HTTP request.

interface HttpRequestData {
    body?: Body;
    method: string;
    params?: Params;
    path?: string;
}

Properties

body?: Body

The request body.

method: string

The HTTP method (e.g., GET, POST, PUT, etc.).

params?: Params

The query parameters of the request.

path?: string

The path of the request URL.