ring
ring copied to clipboard
Clojure HTTP server abstraction
Setting `:headers` is mandatory in [the Ring SPEC](https://github.com/ring-clojure/ring/blob/master/SPEC) for responses. As it is effectively the same as not setting the `:headers` at all (which is both less code & faster),...
I've tried using both jetty and httpkit, in both cases my request maps contain `nil` values for the optional keys `:body` and `:query-string`; this is not compliant with the [`:ring/request`](https://github.com/ring-clojure/ring-spec/blob/master/src/ring/core/spec.clj#L115)...
Hi there, We are getting an NPE thrown from the `ring.middleware.multipart-params` and I don't know where to start looking to track the problem down. Any help would be appreciated. This...
```clojure (def app-stateless (-> handler (wrap-keyword-params {:parse-namespaces? true}) ;(wrap-nested-params) (wrap-params) (add-headers) (wrap-restful-format))) ``` ```clojure (-> (peridot/session core/app-stateless) (peridot/content-type "application/edn") (peridot/request "/authentication" :request-method :post :body (pr-str {:action "sign-up" :user/email "[email protected]" :user/password...
I struggled to setup ring for development and production, as there are so many options. I tried to compile what I found into two pages https://github.com/laliluna/ring/wiki/Setup-for-development and https://github.com/laliluna/ring/wiki/Setup-for-production In addition...
Is there any way to limit max upload size? If so could you provide an example please?
The multipart middleware would throw an exception when it encountered an invalid filename. For most apps that exception would be caught by the default exception handler and result in a...
Writing apps that mostly depending just on `ring/ring-core`, but using the `ring.middleware.multipart-params` fails for the missing servlet api. At least `org.apache.commons.fileupload.FileUploadBase` references to Servlet stuff. Could there be a servlet-free...
Instead of just complaining, I'd figure I make a pr :-)
Commons FileUpload allows limiting uploaded file/request size (throwing exception when the size is exceeded) by counting the bytes received over the wire. `ring.middleware.multipart-params` now accepts two more options: - max-request-size...