📚Clarify Immutable setting

pull/593/head
Roger Guldbrandsen 2020-07-12 22:48:12 +09:00
parent 39fdf8bfa2
commit 5d5e988802
No known key found for this signature in database
GPG Key ID: 837452F60E594366
1 changed files with 4 additions and 1 deletions

5
app.go
View File

@ -89,7 +89,10 @@ type Settings struct {
// By default this is disabled and both "/FoO" and "/foo" will execute the same handler.
CaseSensitive bool `json:"case_sensitive"`
// Enables handler values to be immutable even if you return from handler
// When enabled, this relinquishes the 0-allocation promise in certain
// cases in order to access the handler values (e.g. request bodies) in an
// immutable fashion so that these values are available even if you return
// from handler.
// Default: false
Immutable bool `json:"immutable"`