Welcome to mirror list, hosted at ThFree Co, Russian Federation.

handler.go « serving « internal - gitlab.com/gitlab-org/gitlab-pages.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 2a9969b7b247365935873ebbdfee6cb802a55c97 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
package serving

import "net/http"

// Handler interface represent an interface that is needed to fullfil the
// serving request
type Handler interface {
	Writer() http.ResponseWriter
	Request() *http.Request
	LookupPath() string
	Subpath() string
	IsNamespaceProject() bool
	IsHTTPSOnly() bool
	HasAccessControl() bool
	ProjectID() uint64
}