qbits.jet.servlet

Compatibility functions for turning a ring handler into a Java servlet.

async-context

(async-context {:as request-map, :keys [servlet-request]})

async-listener

(async-listener ch)

build-request-map

(build-request-map request)

Create the request map from the HttpServletRequest object.

chan?

(chan? x)

flush-buffer!

(flush-buffer! servlet-response)

OutputStreamWritable

protocol

members

-write-stream!

(-write-stream! x stream-writer)

PBodyWritable

protocol

members

write-body!

(write-body! body servlet-response request-map)

PResponse

protocol

members

-update-response

(-update-response x servlet-response)

set-body!

(set-body! servlet-response request-map body)

set-response-body!

(set-response-body! servlet-response request-map body)

throw-invalid-response!

(throw-invalid-response! x)

update-response

(update-response x request-map)

write-stream!

(write-stream! stream x request-map)