Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/oak/util.ts

A middleware framework for handling HTTP with Deno 🐿️ 🦕
Very Popular
Go to Latest
import * as oak from "https://deno.land/x/oak@v11.0.0/util.ts";

Classes

A utility class that transforms "any" chunk into an Uint8Array.

Variables

Body types which will be coerced into strings before being sent.

Functions

Safely decode a URI component, where if it fails, instead of throwing, just returns the original string

Encodes the url preventing double enconding

Guard for Async Iterables

Determines if a HTTP Status is an ErrorStatus (4XX or 5XX).

Determines if a string "looks" like HTML

Guard for Deno.Reader.

Determines if a HTTP Status is a RedirectStatus (3XX).

Create a ReadableStream<Uint8Array> from an AsyncIterable.

Create a ReadableStream<Uint8Array> from a Deno.Reader.

Returns u8 with leading white space removed.