Skip to content

Allow response.text() don't always assume json #11

@zackify

Description

@zackify

What if we add this ability into the middleware?

import { observer } from 'legible'

const request => response => modify => {
  modify('response', response.text())
}

Something like that? Not sure how I feel about the syntax but we need some way to have access to every piece of the request and modify it

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