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

Improve request interface #468

Merged
merged 4 commits into from
Mar 28, 2021
Merged

Improve request interface #468

merged 4 commits into from
Mar 28, 2021

Conversation

eritbh
Copy link
Member

@eritbh eritbh commented Mar 14, 2021

Adds support for passing plain string bodies for POST requests, rather than always interpreting options.body as form data. This clears the way for features using new APIs that use JSON bodies rather than form data, such as #448. Also simplifies the code used to send messages from the background page back to the content script when a request has finished, and corrects some documentation comments.

@creesch
Copy link
Member

creesch commented Mar 28, 2021

Is there any particular reason this isn't merged? Or is it just awaiting review? In any case lgtm.

@eritbh
Copy link
Member Author

eritbh commented Mar 28, 2021

Waiting for review, and like most of my open PRs I wanted to land them after we're done with 5.5.x releases - but we seem to keep needing more bug fix releases :P

@creesch creesch merged commit 1bce47b into master Mar 28, 2021
@creesch creesch deleted the improve-request-interface branch March 28, 2021 17:53
@eritbh eritbh added this to the v5.6 milestone Mar 28, 2021
eritbh added a commit that referenced this pull request Sep 5, 2024
* Update doc comment for serializeResponse

* Simplify code for response message generation

* Support sending arbitrary string bodies

* Simplify body type check to make deepscan happy
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants