Skip to content

Async requests do not return a response map #512

Open
@dAnjou

Description

@dAnjou

Hi,

when doing an async request like:

(let [response (defer (http/get "http://example.com" {:async? true} (fn [_] _) (fn [_] _))])

response is org.apache.http.HttpResponse and not a Ring response map.

In our use case we're using the code above in our tests.

Can the return value of an async request also be wrapped in such a map?

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions