miqro · @miqro/core · @miqro/parser · @miqro/query · @miqro/jsx · @miqro/jsx-dom · @miqro/jsx-node · @miqro/request · @miqro/runner · @miqro/test · @miqro/test-http
import { request } from "@miqro/request";
console.dir(await request({
url: ...,
query: {
...
},
method: ...,
headers: {
...
},
data: ...,
...
}))
responses with Content-Encoding: gzip are decompressed automatically.
application/json → res.data is parsed objecttext/* → res.data is stringres.data is Bufferrequest body:
Content-Type → JSON serialized, Content-Type: application/jsonContent-Type: text/plain