io.pedestal.http.http-kit.response

Utilities for converting Pedestal response :body types to those compatible with Http-Kit.

HttpKitResponse

protocol

members

convert-response-body

(convert-response-body body)

Converts a body value to a type compatible with HttpKit.

Returns a tuple of the default content type to use (or nil), and the body converted to an acceptible type for Http-Kit.