httpd

package
v0.2.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 26, 2021 License: GPL-3.0 Imports: 23 Imported by: 0

Documentation

Overview

HTTP server with extended directory indices.

The directory indices generated by this server feature: "download as archive" functionality, multi-file upload (form/drag-n-drop), and javascript managed upload with progress display.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Serve

func Serve(cmd *cobra.Command, args []string)

Launch a HTTP(S) server.

func ServeIcon

func ServeIcon(w http.ResponseWriter, r *http.Request)

Serve one of iwebd's file type images

This expects paths /.well-known/icons/foo.png, and will serve the specified file from the icons archive.

func WithAuth

func WithAuth(h http.Handler, auth *util.UserPass) http.Handler

Wrap a http handler to require basic authentication.

The realm is hard-coded to iwebd.

func WithHttpLogging

func WithHttpLogging(h http.Handler) http.Handler

Wrap a HTTP handler to emit request logs using the logger in go.pberndt.com/iwebd/util.Log.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL