MCPcopy
hub / github.com/ThatGuySam/doesitarm / buildRequestInit

Function buildRequestInit

helpers/http.js:87–107  ·  view source on GitHub ↗
( {
    body,
    cache,
    credentials,
    headers,
    method,
    mode,
    redirect,
    signal
} )

Source from the content-addressed store, hash-verified

85}
86
87function buildRequestInit ( {
88 body,
89 cache,
90 credentials,
91 headers,
92 method,
93 mode,
94 redirect,
95 signal
96} ) {
97 return {
98 body,
99 cache,
100 credentials,
101 headers,
102 method,
103 mode,
104 redirect,
105 signal
106 }
107}
108
109export async function request ( input, options = {} ) {
110 const config = toRequestConfig( input, options )

Callers 1

requestFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected