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

Support for MIME types other than JSON #1

Open
kimburgess opened this issue May 23, 2020 · 1 comment
Open

Support for MIME types other than JSON #1

kimburgess opened this issue May 23, 2020 · 1 comment
Assignees
Labels
type: enhancement new feature or request

Comments

@kimburgess
Copy link
Contributor

The current implementation is setup for working with JSON API's only. To provide more generalised use, it would be nice to implement the ability to register arbitrary parsers based on MIME type.

Potential syntax:

Responsible.parse "text/csv" do |response|
  CSV.new response.body || response.body_io
end

Sensible default can ship for out-of-the-box functionality as part of this.

@kimburgess kimburgess added the type: enhancement new feature or request label May 23, 2020
@kimburgess kimburgess self-assigned this May 23, 2020
@stakach
Copy link

stakach commented May 29, 2020

seems like a good addition

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: enhancement new feature or request
Projects
None yet
Development

No branches or pull requests

2 participants