@signumjs/http
Version:
SignumJS Generic Http Module
19 lines (18 loc) • 637 B
TypeScript
import { Http } from './http';
/**
* Factory for clients of {@link Http}
*
* @module http
*/
export declare class HttpClientFactory {
/**
* Creates an Http instance
*
* The current default implementation uses https://github.com/axios/axios
*
* @param baseUrl The base/root host url for the adapter, i.e. https://contoso.com
* @param options An arbitrary options object, depending on the implementation.
* As the default implementation uses axios the available options are here: https://axios-http.com/docs/req_config
*/
static createHttpClient(baseUrl: string, options?: any): Http;
}