Module ::http

Overview

A simple HTTP module for Rune.

Examples

let res = http::get("https://httpstat.us/200?sleep=100").await;

dbg!(res.text().await?);

Structs

Client

An asynchronous Client to make Requests with.

Error

An error returned by methods in the http module.

RequestBuilder

A builder to construct the properties of a Request.

Response

A Response to a submitted [Request].

StatusCode

An HTTP status code.

Functions

get

Shorthand for generating a get request.