Rho Rho language and toolchain

std.web.http

The module module std.web.http, read from deploy/std/web/http.rho. This page is generated from the source, so it describes what the code declares.

Functions

html()

fn html(status: u32, body: string) Response

json()

fn json(status: u32, body: string) Response

statusbadrequest()

fn status_bad_request() u32

status_conflict()

fn status_conflict() u32

status_created()

fn status_created() u32

status_forbidden()

fn status_forbidden() u32

status_internal()

fn status_internal() u32

statusnocontent()

fn status_no_content() u32

statusnotfound()

fn status_not_found() u32

status_ok()

fn status_ok() u32

statuspayloadtoo_large()

fn status_payload_too_large() u32

status_unauthorized()

fn status_unauthorized() u32

text()

fn text(status: u32, body: string) Response

Externs

Externs are supplied by the host rather than declared in Rho, which is how a port reaches a service.

ExternSignature
sse_fileextern fn sse_file(path: string, interval_ms: u32) Response