Skip to content

Add support for Request.get_json() #5

Open

Description

@irusland

Add method get_json() to easily parse post data
instead of this:

    req.body_file.seek(0)
    body = req.body_file.read()
    body = Request.decode(body)
    query = parse_qs(f'{body}')
    POSTS.append(query)

Activity

  1. self-assigned this
    on Nov 22, 2020
  2. added this to the Server Enhancement milestone on Nov 22, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions