PolicyCheckMiddleware returns a pre-handle middleware handler to process policy check.
(next http.Handler)
| 186 | |
| 187 | // PolicyCheckMiddleware returns a pre-handle middleware handler to process policy check. |
| 188 | func (o *ObjectNode) policyCheckMiddleware(next http.Handler) http.Handler { |
| 189 | return http.HandlerFunc( |
| 190 | func(w http.ResponseWriter, r *http.Request) { |
| 191 | o.policyCheck(next.ServeHTTP).ServeHTTP(w, r) |
| 192 | }) |
| 193 | } |
| 194 | |
| 195 | // ContentMiddleware returns a middleware handler to process reader for content. |
| 196 | // If the request contains the "X-amz-Decoded-Content-Length" header, it means that the data |
nothing calls this directly
no test coverage detected