Version: Next
#
Module: Petitio#
Properties#
export=• export=: (url
: string | URL, method
: HTTPMethod) => PetitioRequest
#
Type declaration:â–¸ (url
: string | URL, method?
: HTTPMethod): PetitioRequest
see
PetitioRequest.constructor
#
Parameters:Name | Type | Default value | Description |
---|---|---|---|
url | string | URL | - | The URL to start composing a request for. |
method | HTTPMethod | "GET" | - |
Returns: PetitioRequest
The Petitio request instance for your URL.
Defined in: index.ts:5