Search... Ctrl + K

Send any HTTP Request (http)
One script reply has been approved by the moderators Verified

Created by fatontibeesou 178 days ago Used 74 times 0 Points

  • 0
    The summary should be descriptive about the parameters it is looking for. The current solution #26 interprets "any" as "Send HTTP request with a configurable method".
    by jaller94 113 days ago
Points: 0
deno
One script reply has been approved by the moderators
Ap­pro­ved
export async function main(url: string, request_type: string) {
  const req = new Request(url, {
    method: request_type,
  });
  let resp = await fetch(req);

  return { response: await resp.text() };
}

Submitted by rossmccrann 147 days ago

Edited 147 days ago

No comments yet