feat: add assessment, privacy and support flows
This commit is contained in:
1 parent
ee3738ee73
commit
e4f24fa202
339 files changed
+56454
-1126
No files matched your search
@@ -0,0 +1,16 @@
|
||||
package httpadapter
|
||||
|
||||
import (
|
||||
"net/http"
|
||||
)
|
||||
|
||||
const maxAssessmentSignalBodyBytes int64 = 32 << 10
|
||||
|
||||
// limitAssessmentSignalBody is called only after the generated router has
|
||||
// matched the signal operation. It leaves decoding and authentication order
|
||||
// to the generated server while bounding both fixed-length and chunked bodies.
|
||||
func limitAssessmentSignalBody(w http.ResponseWriter, request *http.Request) {
|
||||
if request.Body != nil {
|
||||
request.Body = http.MaxBytesReader(w, request.Body, maxAssessmentSignalBodyBytes)
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user