UNPKG

@sap/xssec

Version:

XS Advanced Container Security API for node.js

22 lines 734 B
export = xssec_fetch; /** * A simple fetch implementation with basic functionality using node's https module. * This implementation has the same API as node-fetch but with limited functionality. * @param {string|URL} inputUrl * @param {https.RequestOptions} options * @returns {Response} * @throws {FetchError} */ declare function xssec_fetch(inputUrl: string | URL, options?: https.RequestOptions): Response; import https = require("https"); declare class Response { constructor(response: any, request: any); get requestUrl(): string; json(): Promise<any>; text(): Promise<any>; get ok(): boolean; get status(): any; get headers(): Map<any, any>; #private; } //# sourceMappingURL=fetch.d.ts.map