std1.0.0-beta-7 SafeC docs

std :: wasm::dom

Struct std::DomFetchResponse

#include <std/wasm/dom.h> source

struct DomFetchResponse {
    int request;
    int status;
    int ok;
}

A completed fetch, as its handler sees it. 'status' is 0 (and ok 0) on a network error; text() etc. are only valid inside the handler.

Fields

§int requestsource
§int statussource
§int oksource

status 200-299

Methods

§struct String text() constsource · definition

the body as text

§struct String status_text() constsource · definition
§struct String url() constsource · definition

final URL (after redirects)

§struct String header(const &char name) constsource · definition

empty if absent