File tree Expand file tree Collapse file tree
ring-httpcore-adapter/src/ring/adapter Expand file tree Collapse file tree Original file line number Diff line number Diff line change 9595 (StringEntity. body)
9696 (seq? body)
9797 (EntityTemplate.
98- (reify ContentProducer
98+ (reify ContentProducer
9999 (writeTo [this ^OutputStream s]
100100 (let [w (if charset
101101 (OutputStreamWriter. s ^String charset)
119119 " Returns an Handler implementation for the given Ring handler.
120120 The HttpContext must contains a map associated to \" ring.request-prototype\" ."
121121 [handler]
122- (reify HttpRequestHandler
122+ (reify HttpRequestHandler
123123 (handle [this request response ^HttpContext context]
124124 (let [req (build-req-map request
125125 (.getAttribute context " ring.request-prototype" ))
167167(defn run-httpcore
168168 " Serve the given handler according to the options.
169169 Options:
170- :port
170+ :port
171171 :server-name - For old HTTP/1.0 clients
172172 :server-port - For old HTTP/1.0 clients, when public facing port is different
173173 from :port
176176 [handler {:keys [port server-name server-port execute]}]
177177 (let [execute (or execute (partial executor-execute
178178 (Executors/newCachedThreadPool
179- (reify ThreadFactory
179+ (reify ThreadFactory
180180 (newThread [this r]
181181 (doto (Thread. ^Runnable r)
182182 (.setDaemon true )))))))
You can’t perform that action at this time.
0 commit comments