ring
ring copied to clipboard
Clojure HTTP server abstraction
[Initially asked on slack](https://clojurians.slack.com/archives/C0A5GSC6T/p1641764621004600) When combining `middleware.session` and `middleware.cookie` with custom options, the encoding/decoding doesn't work as expected. Either no cookies get encoded, or none get decoded. It seems to...
Related to #297. Not marking as "fixes" because this only applies to `byte-array-store`, not `temp-file-store`. Does what it says in the title. I recognize that this does overlap in intended...
Consider this simple static file delivery, but observe carefully its delivered Content-Type header: ```clojure (-> handler (wrap-file "public") ; :index-files? defaults to true, serving index.* files in directories (wrap-content-type)) ;...
Hi, Trying to use a simple ring-app with ring.middleware.multipart-params on a native image generated by GraalVM 21's native-image tool fails because the Clojure classloader cannot find a generated class for...
It is useful for stopping a server without reflection warnings. ```clojure (ns some-ns ... (:import [org.eclipse.jetty.server Server])) (defmethod ig/halt-key! ::adapters/jetty [_ ^Server server] (.stop server)) ``` vs ```clojure (defmethod ig/halt-key!...
## Context When writing clojure web applications and middleware it's common to need HTTP responses with many different status codes, like `401 Unauthorized`, `403 Forbidden` and many others. A full...
When loading resources with GraalVM the protocol returned by the `java.net.URL` is "resource" instead of "jar". Mirroring the `:jar` `resource-data` multimethod would allow apps compiled with GraalVM to use `wrap-resource`...
Jetty's config options are for the PROTOCOL header, not a single Field: Value pair. So these options control the sum of all headers and status lines.
Although the various specs prefer [1] numeric timezones allowed by rfc822 [2] for the cookie expires field, some browsers discard cookies with dates in this format (latest chrome and safari...
Any plans for http2 support? This fork has it https://github.com/sunng87/ring-jetty9-adapter Is it possible to implement officially?