Skip to content

Unable to access raw body stream from fetch response #26

Description

@knubie

In js/fetch you can access the raw body as a stream like so:

(let [res (<p! (js/fetch endpoint #js{...}))]
  (-> res .-body (.pipe dest)))

However, similar to #25, in lambdaisland/fetch it's not possible to access the raw body because it's always decoded first.

(p/let [body (decode-body content-type response opts)]

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions