serve_from_resource


Description:


[ Version ( since = "0.3" ) ]
public HandlerCallback serve_from_resource (Resource resource, string prefix = "/", ServeFlags serve_flags = NONE, owned HandlerCallback forward = forward)

Serve files from the provided GLib.Resource bundle.

The 'ETag' header is obtained from a SHA1 checksum.

http://valadoc.org/#!api=gio-2.0/GLib.Resource

Parameters:

resource

resource bundle to serve

prefix

prefix from which resources are resolved in the resource bundle; a valid prefix begin and start with a '/' character

serve_flags

flags for serving the resources

See also:

Valum.Static.serve_from_file, GLib.resources_open_stream, GLib.resources_lookup_data


Namespace: Valum.Static
Package: valum-0.3



2022 vala-language.org