Function: post()
post(
url,options?):Promise<Response>
Defined in: src/public.ts:92
Make an HTTP POST request
Parameters
url
string
Request URL
options?
Request options
Returns
Promise<Response>
Response object
Example
const response = await post("https://httpbin.org/post", {
json: { key: "value" }
});
console.log(response.json());