Skip to content

Add new method req.get_param_as_media() #2549

@vytas7

Description

@vytas7

Add new method req.get_param_as_media() (or req.get_param_as_content() more in line with OpenAPI spec, but I think get_param_as_media() is more consistent with the rest of the framework).

This new method would be similar to req.get_param_as_json(), however it would also accept a content_type (str) argument instead of just defaulting to JSON.

req.get_param_as_json() could then become a thin wrapper around the new method.

TBD whether the content_type argument would be required, or could be None, and default to the application's default content type.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementgood first issueComment on this issue if you'd like to volunteer to work on this. Thanks!needs contributorComment on this issue if you'd like to volunteer to work on this. Thanks!

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions