-
Notifications
You must be signed in to change notification settings - Fork 259
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
Restructure body parsers to use content type. Add many parsers #584
Conversation
* Restructure parser list to use the pattern as the key and parser as the value. Allows the same parser to exist under different content type values. * Provide duplicate parsers for commonly seen content types * add tsv parser * add csv parser * Allow for arguments to be supplied to parsers * use other parsers to reduce copy/pasta
…o post_body_content_type
This is masterfully crafted code. Beautiful. Loves the generalization where parser reuse other parser. Last time I've seen that great of a collab was Snoop & Dre. Seriously. Great stuff. |
😆😆 Made my day! |
* master: Replace plus sign with space character when parsing a query string (#618)
Co-authored-by: Bruno Tremblay <bruno.tremblay@lacapitale.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM pending last few comments
Co-authored-by: Carson Sievert <cpsievert1@gmail.com>
Co-authored-by: Carson Sievert <cpsievert1@gmail.com>
…lumber into post_body_content_type
Pop a can of Dr Pepper, you did it!!!! |
😌 Hope to get #598 this afternoon so we can test the two of them together. |
Fixes #583
Fixes #586
Reference: https://community.rstudio.com/t/uploading-tsv-files-to-plumber-api/71705/3
Changes:
application/octet
is provided, inspect the file name to see what it's mime-type is and use that as the content type value.application/octet
, but processed usingapplication/rds
which maps toparser_rds()
{
, but is truly plain text and not JSON.add_parser()
,parse_body()
, ...)PR task list:
devtools::document()
@meztez Can you take a look at this PR.