-
Notifications
You must be signed in to change notification settings - Fork 113
Closed
Description
The original requirement is from here.
Current Situation
nginx-clojure will read request body in non-blocking way before invoking content handler so that a content handler can get the body stream easily, e.g.
- Java
InputStream body = request.get(MiniConstants.BODY);- Clojure
(:body request)If request body buffer size is smaller than the request body size temp file will be used. Request body buffer size can be controlled by nginx directive client_body_buffer_size and it is two pages size ,e.g. 8k by default .
Changes for This New Feature
UPDATED v2
- We'll extend the existing directive
always_read_bodywhose default value isbefore_content_handler - When
always_read_bodyisoffnginx-clojure won't try to read request body, content handler can add a channel listener to accept downstream read events. - When
always_read_bodyisonit is equivalent tobefore_rewrite_handler