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

Function postJson

helpers/http.js:208–217  ·  view source on GitHub ↗
( url, data, options = {} )

Source from the content-addressed store, hash-verified

206}
207
208export async function postJson ( url, data, options = {} ) {
209 const { data: responseData } = await request( url, {
210 ...options,
211 data,
212 method: 'POST',
213 responseType: 'json'
214 } )
215
216 return responseData
217}
218
219export async function requestJson ( input, options = {} ) {
220 const { data } = await request( input, {

Callers 2

submitScanInfoMethod · 0.90
http.test.tsFile · 0.90

Calls 1

requestFunction · 0.85

Tested by

no test coverage detected