Documentation ¶
Overview ¶
Package web provides an http.Handler implementation that serves content from the Upspin namespace. For example, an HTTP request for
http://host.example.com/user@example.com/foo
returns the Upspin file
user@example.com/foo
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func New ¶
New returns an http.Handler that serves the Upspin names identified by the request path. For example, a request for a URL with the path "/user@example.com/file" returns the content available at that Upspin path (without the leading slash).
The handler will only serve the Upspin trees of users that are considered Writers by the given IsWriter.
Types ¶
Click to show internal directories.
Click to hide internal directories.