caddy_resumable_uploads

package module
v0.0.0-...-330f2ee Latest Latest
Warning

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

Go to latest
Published: Nov 24, 2023 License: MIT Imports: 13 Imported by: 0

README

caddy-rufh

[!WARNING]
Work in progress. Working version and docs to follow.

Caddy module for Resumable Uploads for HTTP (RUFH)

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	InteropVersion = "4"
	IncompleteExt  = ".incomplete"
)

Functions

This section is empty.

Types

type Middleware

type Middleware struct {

	// Path to store temporary files. Defaults to os.TempDir()/resumable_uploads
	TmpDir string `json:"output_path,omitempty"`
	// contains filtered or unexported fields
}

func (Middleware) CaddyModule

func (Middleware) CaddyModule() caddy.ModuleInfo

func (*Middleware) OffsetRetrievingHandler

func (m *Middleware) OffsetRetrievingHandler(w http.ResponseWriter, r *http.Request) error

func (*Middleware) Provision

func (m *Middleware) Provision(ctx caddy.Context) error

func (Middleware) ServeHTTP

func (m Middleware) ServeHTTP(w http.ResponseWriter, r *http.Request, next caddyhttp.Handler) error

func (*Middleware) UnmarshalCaddyfile

func (h *Middleware) UnmarshalCaddyfile(d *caddyfile.Dispenser) error

func (*Middleware) UploadAppendingHandler

func (m *Middleware) UploadAppendingHandler(w http.ResponseWriter, r *http.Request) error

func (*Middleware) UploadCreationHandler

func (m *Middleware) UploadCreationHandler(w http.ResponseWriter, r *http.Request) error

func (*Middleware) Validate

func (m *Middleware) Validate() error

Jump to

Keyboard shortcuts

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