MCPcopy Create free account
hub / github.com/cyclejs/cyclejs / softNormalizeRequestInput

Function softNormalizeRequestInput

http/src/http-driver.ts:112–120  ·  view source on GitHub ↗
(reqInput: RequestInput)

Source from the content-addressed store, hash-verified

110}
111
112function softNormalizeRequestInput(reqInput: RequestInput): RequestOptions {
113 let reqOptions: RequestOptions;
114 try {
115 reqOptions = normalizeRequestInput(reqInput);
116 } catch (err) {
117 reqOptions = {url: 'Error', _error: err};
118 }
119 return reqOptions;
120}
121
122function normalizeRequestInput(reqInput: RequestInput): RequestOptions {
123 if (typeof reqInput === 'string') {

Callers 1

requestInputToResponse$Function · 0.85

Calls 1

normalizeRequestInputFunction · 0.85

Tested by

no test coverage detected