Interface representing the return type of the useHttpRequestHandler hook.

interface UseHttpRequestHandlerReturn {
    craftDeleteRequest: (<TPathParams, TQueryParams, TResponseBody>(factoryProps: FactoryFunctionPropsWithoutRequestBody<TPathParams, TQueryParams, TResponseBody>) => RequestFunctionWithoutRequestBody<TPathParams, TQueryParams, TResponseBody>);
    craftGetRequest: (<TPathParams, TQueryParams, TResponseBody>(factoryProps: FactoryFunctionPropsWithoutRequestBody<TPathParams, TQueryParams, TResponseBody>) => RequestFunctionWithoutRequestBody<TPathParams, TQueryParams, TResponseBody>);
    craftHeadRequest: (() => (() => Promise<HttpResponse<{}, {}, never, never>>));
    craftLinkRequest: (<TPathParams, TQueryParams, TRequestBody, TResponseBody>(factoryProps: FactoryFunctionProps<TPathParams, TQueryParams, TRequestBody, TResponseBody>) => RequestFunctionWithRequestBody<TPathParams, TQueryParams, TRequestBody, TResponseBody>);
    craftOptionsRequest: (<TPathParams, TQueryParams, TResponseBody>(factoryProps: FactoryFunctionPropsWithoutRequestBody<TPathParams, TQueryParams, TResponseBody>) => RequestFunctionWithoutRequestBody<TPathParams, TQueryParams, TResponseBody>);
    craftPatchRequest: (<TPathParams, TQueryParams, TRequestBody, TResponseBody>(factoryProps: FactoryFunctionProps<TPathParams, TQueryParams, TRequestBody, TResponseBody>) => RequestFunctionWithRequestBody<TPathParams, TQueryParams, TRequestBody, TResponseBody>);
    craftPostRequest: (<TPathParams, TQueryParams, TRequestBody, TResponseBody>(factoryProps: FactoryFunctionProps<TPathParams, TQueryParams, TRequestBody, TResponseBody>) => RequestFunctionWithRequestBody<TPathParams, TQueryParams, TRequestBody, TResponseBody>);
    craftPurgeRequest: (<TPathParams, TQueryParams, TRequestBody, TResponseBody>(factoryProps: FactoryFunctionProps<TPathParams, TQueryParams, TRequestBody, TResponseBody>) => RequestFunctionWithRequestBody<TPathParams, TQueryParams, TRequestBody, TResponseBody>);
    craftPutRequest: (<TPathParams, TQueryParams, TRequestBody, TResponseBody>(factoryProps: FactoryFunctionProps<TPathParams, TQueryParams, TRequestBody, TResponseBody>) => RequestFunctionWithRequestBody<TPathParams, TQueryParams, TRequestBody, TResponseBody>);
    craftUnlinkRequest: (<TPathParams, TQueryParams, TRequestBody, TResponseBody>(factoryProps: FactoryFunctionProps<TPathParams, TQueryParams, TRequestBody, TResponseBody>) => RequestFunctionWithRequestBody<TPathParams, TQueryParams, TRequestBody, TResponseBody>);
}

Properties

Function to craft a DELETE request.

Function to craft a GET request.

craftHeadRequest: (() => (() => Promise<HttpResponse<{}, {}, never, never>>))

Function to craft a HEAD request.

Function to craft a LINK request.

Function to craft an OPTIONS request.

Function to craft a PATCH request.

Function to craft a POST request.

Function to craft a PURGE request.

Function to craft a PUT request.

Function to craft an UNLINK request.