Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

WIP: investigate permitting FormData as a body in requests #104

Closed
wants to merge 2 commits into from

Conversation

trevor-scheer
Copy link
Member

@trevor-scheer trevor-scheer commented Nov 29, 2022

Precedes #90 if favorable.

I'm not excited by the complexity in typings this introduces. This work spun out as an investigation in response to this comment: #90 (comment)

Unfortunately the generic TFormData has to be piped into everything that looks at request objects.

@codesandbox-ci
Copy link

codesandbox-ci bot commented Nov 29, 2022

This pull request is automatically built and testable in CodeSandbox.

To see build info of the built libraries, click here or the icon next to each commit SHA.

body != null &&
typeof body !== 'string' &&
!(body instanceof Buffer) &&
body.constructor.name !== 'FormData'
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We anticipate different FormData types, not sure of a better way to identify

Base automatically changed from trevor/update-modifiedrequest-body to main November 29, 2022 23:15
@trevor-scheer
Copy link
Member Author

Closing in favor of #90

@trevor-scheer trevor-scheer deleted the trevor/form-data branch February 6, 2023 22:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant