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

Add mime type qs::qread() to httr::content() #727

Closed
tsenegas opened this issue Nov 23, 2022 · 1 comment
Closed

Add mime type qs::qread() to httr::content() #727

tsenegas opened this issue Nov 23, 2022 · 1 comment

Comments

@tsenegas
Copy link

tsenegas commented Nov 23, 2022

Is there an easy way to add the mime type qs::qread() to the httr::content() function ?

Let's say by adding to content-parse.R something like this:

parsers$`application/octet-stream` <- function(x, encoding = NULL, type = NULL, ...) {
    need_package("qs")
    qs::qread(x)
}

Thanks

@tsenegas tsenegas changed the title Add qs::qread() to content() Add mime type qs::qread() to httr::content() Nov 23, 2022
@hadley
Copy link
Member

hadley commented Oct 31, 2023

httr has been superseded in favour of httr2, so is no longer under active development. httr2 uses a different parsing mechanism with less built in magic, so this wouldn't be needed in httr2.

@hadley hadley closed this as completed Oct 31, 2023
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

No branches or pull requests

2 participants