Skip to content

Additional info from router (Including headers) does not pass to custom handlers #3

Open

Description

@irusland

with configuration like this:

...
    "/ping": {
      "handler": {
        "source": "handlers/api.py",
        "get": "get"
      },
      "headers": [
        ["Access-Control-Allow-Origin", "http://localhost:3000"]
      ]
    }
...

in handlers/api.py its impossible to get ["Access-Control-Allow-Origin", "http://localhost:3000"] without parsing config again.

Activity

  1. added this to the Server Enhancement milestone on Nov 22, 2020
  2. self-assigned this
    on Nov 22, 2020
  3. irusland commented on Nov 22, 2020

    @irusland
    OwnerAuthor
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingenhancementNew feature or request

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions