immutant

http://immutant.org Note: dev discussion happens in #immutant on FreeNode IRC.
2017-05-02T14:27:15.210234Z

@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

2017-05-02T14:29:20.265188Z

@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

2017-05-02T14:29:41.273810Z

and I would think that wss would just work if you have ssl set up

dergutemoritz 2017-05-02T14:31:09.314508Z

@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.

2017-05-02T14:31:27.323011Z

ah

2017-05-02T14:31:29.323673Z

yeah

2017-05-02T14:31:31.324923Z

hrm

dergutemoritz 2017-05-02T14:31:39.327863Z

(my actual payload is > 0 bytes long, of course)

2017-05-02T14:31:50.333187Z

I can see if that's Immutant or undertow doing that underneath

dergutemoritz 2017-05-02T14:31:59.337426Z

In my case, I can't predict the payload size so I'd like to leave it off entirely

2017-05-02T14:32:07.340757Z

right

dergutemoritz 2017-05-02T14:32:08.341382Z

That'd be nice!

bostonaholic 2017-05-02T16:39:10.675289Z

thanks @tcrawley I’ll take a look at using as-channel