Skip to content

Header parameters #35

@Gr1N

Description

@Gr1N

Need to have possibility to validate headers.

At a glance:

async def handle(locale: Header[str]):
    pass

Also, we can specify defaults:

async def handle(locale: Header[str] = "ru"):
    pass

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions