Documentation ¶
Overview ¶
Package httpserver contains the http server logic
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( EnableUpload bool EnableVerbose bool )
Convenience globals
Functions ¶
This section is empty.
Types ¶
type HTTPServer ¶
type HTTPServer struct {
// contains filtered or unexported fields
}
HTTPServer instance
func (*HTTPServer) ListenAndServe ¶
func (t *HTTPServer) ListenAndServe() error
ListenAndServe requests over http
func (*HTTPServer) ListenAndServeTLS ¶
func (t *HTTPServer) ListenAndServeTLS() error
ListenAndServeTLS requests over https
type Options ¶
type Options struct { Folder string EnableUpload bool ListenAddress string TLS bool Certificate string CertificateKey string CertificateDomain string BasicAuthUsername string BasicAuthPassword string BasicAuthReal string Verbose bool Sandbox bool MaxFileSize int // 50Mb }
Options of the http server
type SandboxFileSystem ¶ added in v0.0.4
type SandboxFileSystem struct { RootFolder string // contains filtered or unexported fields }
SandboxFileSystem implements superbasic security checks
Click to show internal directories.
Click to hide internal directories.