Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Handler ¶
type Handler struct {
Writer http.ResponseWriter
Request *http.Request
LookupPath *LookupPath
// Parsed representation of Request.URI that is part of LookupPath.Prefix
SubPath string
}
Handler aggregates response/request and lookup path + subpath needed to handle a request and response.
type LookupPath ¶
type LookupPath struct {
Prefix string // Project prefix, for example, /my/project in group.gitlab.io/my/project/index.html
Path string // Path is an internal and serving-specific location of a document
IsNamespaceProject bool // IsNamespaceProject is DEPRECATED, see https://gitlab.com/gitlab-org/gitlab-pages/issues/272
IsHTTPSOnly bool
HasAccessControl bool
ProjectID uint64
}
LookupPath holds a domain project configuration needed to handle a request
Click to show internal directories.
Click to hide internal directories.