An object containing all information needed to make a request to the WaniKani API using any HTTP API/Library.

interface WKRequest {
    body: null | string;
    headers: WKRequestHeaders;
    method: "GET" | "POST" | "PUT";
    url: string;
}

Properties

Properties

body: null | string

The request body, either null for GET requests, or a string for POST and PUT requests.

The request headers, including both standard and user-set headers.

method: "GET" | "POST" | "PUT"

The request's HTTP method.

url: string

The full URL where the request will be sent to.