Skip to content

Add API to easily send JSON as request body #1726

Closed
@socketpair

Description

i.e. some shortcut for

data = {'answer': 42}
client_session.post(
    'http://example.com',
    data=json.dumps(answer),
    headers={'content-type': 'application/json'}
)

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions