Skip to content

HTTP runner: deprecate params parsers in favour of custom protocols #4

@amgaera

Description

@amgaera

HTTP requests need to be translated into function calls before they can be recorded.
Right now there are two ways of implementing this conversion: one can either write a new protocol, or use the predefined RawProtocol with a custom params parser. None of these methods is significantly better than the other, and the choice between them introduces unnecessary confusion.

To simplify the API, I propose to deprecate params parsers in favour of custom protocols. To make writing the latter easier, a base class for all protocols (e.g. with a default implementation of the dumps method) could be introduced.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions