~hduran-8/+junk/caddy

« back to all changes in this revision

Viewing changes to debian/gocode/src/github.com/mholt/caddy/caddyhttp/httpserver/siteconfig.go

  • Committer: Horacio Durán
  • Date: 2017-01-20 16:21:20 UTC
  • Revision ID: horacio.duran@canonical.com-20170120162120-l82mfqwmsclnk838
Upgrade to 0.9.4

Show diffs side-by-side

added added

removed removed

Lines of Context:
30
30
        // standardized way of loading files from disk
31
31
        // for a request.
32
32
        HiddenFiles []string
 
33
 
 
34
        // Max amount of bytes a request can send on a given path
 
35
        MaxRequestBodySizes []PathLimit
 
36
}
 
37
 
 
38
// PathLimit is a mapping from a site's path to its corresponding
 
39
// maximum request body size (in bytes)
 
40
type PathLimit struct {
 
41
        Path  string
 
42
        Limit int64
33
43
}
34
44
 
35
45
// AddMiddleware adds a middleware to a site's middleware stack.