Documentation ¶
Index ¶
Constants ¶
View Source
const ( EncodingNone = 0 EncodingGzip = iota EncodingBrotli = iota )
Variables ¶
This section is empty.
Functions ¶
func DefaultLongtermMatcher ¶
Types ¶
type PathMatcher ¶
type SinglepageApplication ¶
type SinglepageApplication struct {
// contains filtered or unexported fields
}
func NewSinglepageApplication ¶
func NewSinglepageApplication(options SinglepageApplicationOptions) (*SinglepageApplication, error)
func (*SinglepageApplication) ServeHTTP ¶
func (sa *SinglepageApplication) ServeHTTP(w http.ResponseWriter, req *http.Request)
type SinglepageApplicationOptions ¶
type SinglepageApplicationOptions struct { Root string ApplicationMatcher PathMatcher LongtermMatcher PathMatcher CacheControl string LongtermCacheControl string }
Click to show internal directories.
Click to hide internal directories.