mirror of
https://github.com/gotenberg/gotenberg.git
synced 2026-08-16 12:22:17 +01:00
godoc for handlers package
This commit is contained in:
@@ -1,3 +1,4 @@
|
|||||||
|
// Package handlers implements all functions on which a request will pass through.
|
||||||
package handlers
|
package handlers
|
||||||
|
|
||||||
import (
|
import (
|
||||||
@@ -14,10 +15,14 @@ import (
|
|||||||
"github.com/justinas/alice"
|
"github.com/justinas/alice"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
// GetHandlersChain returns the handlers chaining
|
||||||
|
// thanks to the alice library.
|
||||||
func GetHandlersChain() http.Handler {
|
func GetHandlersChain() http.Handler {
|
||||||
return alice.New(enforceContentLengthHandler, enforceContentTypeHandler, convertHandler, serveHandler).ThenFunc(clearHandler)
|
return alice.New(enforceContentLengthHandler, enforceContentTypeHandler, convertHandler, serveHandler).ThenFunc(clearHandler)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// requestHasNoContentError is raised when the request
|
||||||
|
// content length is 0.
|
||||||
type requestHasNoContentError struct{}
|
type requestHasNoContentError struct{}
|
||||||
|
|
||||||
func (e *requestHasNoContentError) Error() string {
|
func (e *requestHasNoContentError) Error() string {
|
||||||
|
|||||||
Reference in New Issue
Block a user