Valum.Static – valum-0.3 Reference Manual
Static
Description:
public
namespace
Static
Utilities to serve static resources.
Namespace:
Valum.Static
Package:
valum-0.3
Content:
Enums:
ServeFlags
-
Flags used to enble or disable options for serving static resources.
Methods:
public
HandlerCallback
serve_from_file
(
File
root,
ServeFlags
serve_flags =
NONE
,
ForwardCallback
<
File
> forward =
forward
)
Serve static files relative to a given root.
public
HandlerCallback
serve_from_path
(
string
path,
ServeFlags
serve_flags =
NONE
,
owned
ForwardCallback
<
File
> forward =
forward
)
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.
public
HandlerCallback
serve_from_uri
(
string
uri,
ServeFlags
serve_flags =
NONE
,
owned
ForwardCallback
<
File
> forward =
forward
)
2022 vala-language.org