asyncworker.http package
Contents
asyncworker.http package#
Submodules#
asyncworker.http.decorators module#
- asyncworker.http.decorators.parse_path(handler)[código fonte]#
Decorator que permite receber dinamicamente parametros do Request Path Basta que o nome do parametro na assinatura do handler seja igual ao nome do parametro declarado no Path HTTP.
asyncworker.http.entrypoints module#
- class asyncworker.http.entrypoints.HTTPEntryPointImpl(app: asyncworker.app.App)[código fonte]#
Base:
asyncworker.entrypoints.EntrypointInterface
- delete(routes: List[str]) Callable [código fonte]#
- get(routes: List[str]) Callable [código fonte]#
- head(routes: List[str]) Callable [código fonte]#
- patch(routes: List[str]) Callable [código fonte]#
- post(routes: List[str]) Callable [código fonte]#
- put(routes: List[str]) Callable [código fonte]#
- class asyncworker.http.entrypoints.RequestParserAnnotationSpec(name: str, base: Type, arg_type: Type)[código fonte]#
Base:
object
asyncworker.http.methods module#
- class asyncworker.http.methods.HTTPMethods(value, names=None, *, module=None, qualname=None, type=None, start=1, boundary=None)[código fonte]#
Base:
asyncworker.options.AutoNameEnum
- DELETE = 'delete'#
- GET = 'get'#
- HEAD = 'head'#
- PATCH = 'patch'#
- POST = 'post'#
- PUT = 'put'#
asyncworker.http.types module#
- class asyncworker.http.types.BoolModel(*, value: bool)[código fonte]#
Base:
pydantic.main.BaseModel
- value: bool#
- class asyncworker.http.types.PathParam(value: asyncworker.http.types.T)[código fonte]#
Base:
asyncworker.http.types.RequestParser
[asyncworker.http.types.T
]- async classmethod from_request(request: asyncworker.http.wrapper.RequestWrapper, arg_name: str, arg_type: Type) asyncworker.http.types.PathParam[asyncworker.http.types.T] [código fonte]#
- class asyncworker.http.types.RequestParser(value: asyncworker.http.types.T)[código fonte]#
Base:
Generic
[asyncworker.http.types.T
]- abstract async classmethod from_request(request: asyncworker.http.wrapper.RequestWrapper, arg_name: str, arg_type: Type) asyncworker.http.types.RequestParser[asyncworker.http.types.T] [código fonte]#
- async unpack() asyncworker.http.types.T [código fonte]#
asyncworker.http.wrapper module#
- class asyncworker.http.wrapper.RequestWrapper(http_request: aiohttp.web_request.Request, types_registry: asyncworker.types.registry.TypesRegistry)[código fonte]#
Base:
object
- http_request: aiohttp.web_request.Request#
- types_registry: asyncworker.types.registry.TypesRegistry#