njs/ngx
Types
Values
pub fn append(ar: array.Array(a), a: a) -> array.Array(a)
pub fn base64url_decode(data d: String) -> String
pub fn base64url_encode(data d: String) -> String
pub fn fetch_request(
resource r: request.Request,
options o: o,
) -> promise.Promise(response.Response)
pub fn fetch_url(
resource r: String,
options o: o,
) -> promise.Promise(response.Response)
pub fn get(o: JsObject, k: k) -> Result(JsObject, Nil)
safe for normal JS objects, not for r.variables
pub fn make_array(ls: List(a)) -> array.Array(a)
pub fn make_query_string(q: json.Json) -> String
pub fn njs_engine() -> String
pub fn njs_on(event: String, callback: fn() -> Nil) -> Nil
Register a lifecycle event callback. The only currently defined event
is "exit", called when a worker process shuts down cleanly.
pub fn njs_version_number() -> Int
pub fn parse_query_string(q: String) -> json.Json