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

Function requestJson

helpers/http.js:219–226  ·  view source on GitHub ↗
( input, options = {} )

Source from the content-addressed store, hash-verified

217}
218
219export async function requestJson ( input, options = {} ) {
220 const { data } = await request( input, {
221 ...options,
222 responseType: 'json'
223 } )
224
225 return data
226}
227
228export async function headOk ( url, options = {} ) {
229 try {

Callers 2

defaultFetchMethodFunction · 0.90
http.test.tsFile · 0.90

Calls 1

requestFunction · 0.85

Tested by

no test coverage detected