File tree 2 files changed +9
-8
lines changed
2 files changed +9
-8
lines changed Original file line number Diff line number Diff line change 238
238
:request-method (-> req .method .name str/lower-case keyword)
239
239
:body body
240
240
:scheme (if ssl? :https :http )
241
- :aleph/keep-alive? (HttpUtil/isKeepAlive req)
242
241
:server-name (netty/channel-server-name ch)
243
242
:server-port (netty/channel-server-port ch)
244
243
:remote-addr (netty/channel-remote-address ch)
245
244
:protocol " HTTP/1.1"
246
- ; ; These keys are internal to Aleph and should not be relied on
247
- :aleph/channel ch
248
- :aleph/request-arrived request-arrived )
245
+ :aleph/keep-alive? (HttpUtil/isKeepAlive req)
246
+ :aleph/request-arrived request-arrived
247
+ ; ; The following keys are internal to Aleph and should not be relied on
248
+ :aleph/channel ch )
249
249
250
250
(p/def-derived-map NettyResponse [^HttpResponse rsp destroy-conn? body]
251
251
:status (-> rsp .status .code)
Original file line number Diff line number Diff line change 822
822
823
823
:protocol " HTTP/2.0"
824
824
825
- ; ; These keys are internal to Aleph and should not be relied on
825
+ :aleph/keep-alive? true ; not applicable to HTTP/2, but here for compatibility
826
+ :aleph/request-arrived (System/nanoTime )
827
+
828
+ ; ; The following keys are internal to Aleph and should not be relied on
826
829
:aleph/channel ch
827
830
:aleph/writable? writable?
828
- :aleph/h2-exception h2-exception
829
- :aleph/keep-alive? true ; not applicable to HTTP/2, but here for compatibility
830
- :aleph/request-arrived (System/nanoTime )}))
831
+ :aleph/h2-exception h2-exception}))
831
832
832
833
(defn- validate-netty-req-headers
833
834
" Netty is not currently checking for missing pseudo-headers, so we do it here."
You can’t perform that action at this time.
0 commit comments