MCPcopy Create free account
hub / github.com/ShipSecAI/studio / resolveOptions

Function resolveOptions

packages/component-sdk/src/http/instrumented-fetch.ts:18–23  ·  view source on GitHub ↗
(options?: HttpInstrumentationOptions)

Source from the content-addressed store, hash-verified

16} from './types';
17
18const resolveOptions = (options?: HttpInstrumentationOptions): Required<Omit<HttpInstrumentationOptions, 'correlationId'>> => ({
19 maxRequestBodySize: options?.maxRequestBodySize ?? DEFAULT_MAX_REQUEST_BODY_SIZE,
20 maxResponseBodySize: options?.maxResponseBodySize ?? DEFAULT_MAX_RESPONSE_BODY_SIZE,
21 sensitiveHeaders: options?.sensitiveHeaders ?? DEFAULT_SENSITIVE_HEADERS,
22 sensitiveQueryParams: options?.sensitiveQueryParams ?? DEFAULT_SENSITIVE_QUERY_PARAMS,
23});
24
25const buildTimings = (partial: Partial<HarTimings>): HarTimings => ({
26 blocked: -1,

Callers 2

instrumentedFetchFunction · 0.85
createHttpClientFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected