Repository URL to install this package:
|
Version:
7.1.2 ▾
|
/// <reference types="node" />
import { URL } from 'url';
import { OneRequestStore, ScopedRequest, Params, ResponseExtended } from '../typings';
declare const fromStoreToParams: (store: OneRequestStore<any, import("../typings").OneRequestContextBase>) => Params;
declare const setParamsOnSearchParams: (params: string, urlObj: URL) => void;
/**
* @note - this gets the urlObj from the store
* then appends serialized search params
*/
declare const setPostParams: (store: OneRequestStore<any, import("../typings").OneRequestContextBase>, init: ScopedRequest) => void;
/**
* @todo @name fetchAdapter
* @description this started as postAdapter, now needs a bit to finish
* ^ when we test POST, this should be good to go to finish
*/
declare function postAdapter(store: OneRequestStore): Request;
/**
* We accept arbitrary objects as body and serialize them as JSON
*/
declare function serializeBody(init: ScopedRequest): void;
declare function adaptRequest(store: OneRequestStore): ResponseExtended<any>;
export { fromStoreToParams, setPostParams, postAdapter, serializeBody, adaptRequest, setParamsOnSearchParams, };