Why Gemfury? Push, build, and install  RubyGems npm packages Python packages Maven artifacts PHP packages Go Modules Debian packages RPM packages NuGet packages

Repository URL to install this package:

Details    
@skava/request / dist / adapters / fetch.d.ts
Size: Mime:
/// <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, };