Edits history of script submission #26 for ' Send any HTTP Request (http)'

  • 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 hugo697 386 days ago

  • deno
    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 admin 1018 days ago

  • deno
    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 1421 days ago