File tree Expand file tree Collapse file tree 3 files changed +7
-3
lines changed Expand file tree Collapse file tree 3 files changed +7
-3
lines changed Original file line number Diff line number Diff line change 15
15
[manifold.deferred :as d]
16
16
[manifold.executor :as executor])
17
17
(:import
18
+ (aleph.http.core
19
+ HeaderMap)
18
20
(aleph.utils
19
21
ConnectionTimeoutException
20
22
PoolTimeoutException
500
502
(defn get-all
501
503
" Given a header map from an HTTP request or response, returns a collection of
502
504
values associated with the key, rather than a comma-delimited string."
503
- [header-m ^String k]
505
+ [^HeaderMap header-m ^String k]
504
506
(let [raw-headers (.headers header-m)]
505
507
(condp instance? raw-headers
506
508
HttpHeaders (.getAll ^HttpHeaders raw-headers k)
Original file line number Diff line number Diff line change 14
14
[manifold.stream :as s]
15
15
[potemkin :as p])
16
16
(:import
17
+ (aleph.http.core
18
+ HeaderMap)
17
19
(io.netty.buffer
18
20
ByteBuf
19
21
Unpooled)
746
748
(defn ^:no-doc extract-cookies-from-response-headers
747
749
([headers]
748
750
(extract-cookies-from-response-headers default-cookie-spec headers))
749
- ([cookie-spec header-m]
751
+ ([cookie-spec ^HeaderMap header-m]
750
752
(let [raw-headers (.headers header-m)]
751
753
(->> (condp instance? raw-headers
752
754
HttpHeaders (.getAll ^HttpHeaders raw-headers set-cookie-header-name)
Original file line number Diff line number Diff line change 633
633
634
634
(defn make-pipeline-builder
635
635
" Returns a function that initializes a new server channel's pipeline."
636
- [handler {:keys [ssl? ssl-context use-h2c?] :as opts}]
636
+ [handler {:keys [ssl? ^SslContext ssl-context use-h2c?] :as opts}]
637
637
(fn pipeline-builder*
638
638
[^ChannelPipeline pipeline]
639
639
(log/trace " pipeline-builder*" pipeline opts)
You can’t perform that action at this time.
0 commit comments