Skip to main content

Quick Start

This guide will walk you through the basics of Keq, from installation to sending your first request.

Installation

Compatibility

Chrome logoChrome
Firefox logoFirefox
Safari logoSafari
Edge
Node.js
91+90+15+91+20+

Send Your First Request

Sending HTTP requests with Keq is simple — just call the corresponding method and await the result:

import { request } from "keq"

const cats = await request.get("/cats")

console.log(`My lovely cats are: ${cats.map(cat => cat.name).join(", ")}`)
Automatic Response Parsing

Keq automatically parses the response body based on the Content-Type response header (details), saving you from manually calling .json().