Module js stdlib

js
Version:
0.3.3
License:
MIT
Dependencies from vmod:
0
Imports:
0
Imported by:
0
Repository:
OS-specific
Show selected OS-specific symbols.
Backend-specific
Show selected Backend-specific symbols.

Dependencies defined in v.mod

This section is empty.

Imports

This section is empty.

Imported by

This section is empty.

Overview

js is frontend/browser specific module, that provides access to global JS functions.

It only works with the JS backend.

Aliases

This section is empty.

Constants

This section is empty.

Sum types

This section is empty.

Functions

#fn JS.fetch

JavaScript
fn JS.fetch(input JS.String, init JS.Object) JS.Promise

#fn fetch

JavaScript
fn fetch(input string, init map[string]JS.Any) promise.Promise[JS.Response, JS.String]

Structs

This section is empty.

Interfaces

#interface JS.Body

JavaScript
pub interface JS.Body {
	body JS.Uint8Array
	bodyUse JS.Boolean
	blob() JS.Promise
	json() JS.Promise
	text() JS.Promise
}

#interface JS.Response

JavaScript
pub interface JS.Response {
	JS.Body
	ok JS.Boolean
	redirected JS.Boolean
	status JS.Number
	statusText JS.String
	url JS.String
	clone() JS.Response
}

Enums

This section is empty.