This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2017-05-02
Channels
- # aws-lambda (5)
- # bangalore-clj (1)
- # beginners (96)
- # boot (66)
- # cider (39)
- # cljsjs (2)
- # cljsrn (5)
- # clojure (265)
- # clojure-android (1)
- # clojure-france (1)
- # clojure-greece (32)
- # clojure-italy (4)
- # clojure-russia (2)
- # clojure-sg (1)
- # clojure-spec (27)
- # clojure-uk (25)
- # clojurescript (88)
- # cursive (4)
- # datomic (31)
- # emacs (96)
- # hoplon (10)
- # immutant (14)
- # jobs (2)
- # luminus (1)
- # lumo (66)
- # off-topic (128)
- # om (8)
- # om-next (2)
- # onyx (9)
- # parinfer (5)
- # re-frame (37)
- # reagent (16)
- # rum (9)
- # schema (3)
- # specter (34)
- # unrepl (8)
- # yada (21)
@dergutemoritz according to https://tools.ietf.org/html/rfc7230#section-3.3.1, Transfer-Encoding
isn't required for HEAD
requests, and I suspect undertow will strip it out if you set it manually, since there is no body
@bostonaholic If you need access to the request
map, you'll need to use immutant.web.async/as-channel
from a ring handler instead of wrap-websocket
(that's what wrap-websocket
is doing for you under the hood
@tcrawley Indeed - however, Immutant adds a Content-Length: 0
header otherwise which contradicts this paragraph in https://tools.ietf.org/html/rfc7230#section-3.3.2
> A server MAY send a Content-Length header field in a response to a HEAD request (Section 4.3.2 of [RFC7231]); a server MUST NOT send Content-Length in such a response unless its field-value equals the decimal number of octets that would have been sent in the payload body of a response if the same request had used the GET method.
(my actual payload is > 0 bytes long, of course)
In my case, I can't predict the payload size so I'd like to leave it off entirely
That'd be nice!
thanks @tcrawley I’ll take a look at using as-channel