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 ¶
Types ¶
type HTTPHeader ¶ added in v0.0.6
HTTPHeader represents an HTTP header
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 Middleware ¶ added in v0.0.5
LayerHandler is the interface of all layer funcs
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 HTTP1Only bool MaxFileSize int // 50Mb MaxDumpBodySize int64 Python bool CORS bool HTTPHeaders []HTTPHeader }
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.