Function
buildRequestInit
( {
body,
cache,
credentials,
headers,
method,
mode,
redirect,
signal
} )
Source from the content-addressed store, hash-verified
| 85 | } |
| 86 | |
| 87 | function 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 | |
| 109 | export async function request ( input, options = {} ) { |
| 110 | const config = toRequestConfig( input, options ) |
Tested by
no test coverage detected