API reference Dodo 0.1.4

std/web/static_files

Public declarations, types, methods, and source contracts for std/web/static_files.

On this page

Library guide · API index and notation

This page is generated from the bundled library in this checkout. Signatures and adjacent source comments are reproduced below; the linked guide explains usage, storage, failures, and platform support.

import "std/web/static_files"

Names used in signatures

Unqualified names denote this package’s types (including other source files in the same package), language built-ins, or generic parameters such as T. Qualified names use the import aliases below. These aliases belong to the library source; import a dependency yourself to use its alias in your program.

Alias Package Source file
error std/platform/error static_files.dodo
fs std/fs static_files.dodo
native std/web/native static_files.dodo
ptr core/ptr static_files.dodo
web std/web static_files.dodo

Enum · Source

pub enum Symlinks {
    Reject
}

Root

Struct · Source

Root is an open directory capability. Every intermediate directory is held open while resolving; links/reparse points are rejected at every component.

pub struct Root {
    // Private implementation fields omitted.
}

Root.open

Function · Source

pub fn open(path: &[u8], policy: Symlinks) -> Root!error.Error

Root.open_file

Function · Source

Path is already decoded by web.decode_path. Dot segments, empty internal segments, colon, trailing space/dot, and percent escapes are disallowed.

pub fn open_file(&self, path: &[u8]) -> fs.File!error.Error

Type to search all documentation.

Keyboard shortcuts

Search documentation
Ctrl K or /
Move through results
↑ ↓
Open selected result
Enter
Close a dialog
Esc
Show these shortcuts
?