Skip to content

[Question] Would it make sense to also wrap error responses in a Request::Response? #9

@F-3r

Description

@F-3r

The main objective would be to have a consistent interface for managing success responses and Error responses.

I find Requests::Response interface cleaner than Net::HTTP error responses (EG, response.to_hash to get the response headers is not very communicative nor intuitive, I almost always need to go back to Net:HTTP docs, which are not very communicative either :P)

I think having this consistency can make client code less surprising and might allow a more fluent dev experience.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions