HTTP QUERY startup contracts (#533).
contracts.rules_query
| Name | Type | Default | Description |
|---|---|---|---|
type
|
|
— | |
qualified_name
|
|
— | |
element_type
|
|
— | |
description
|
|
— | |
source_file
|
|
— | |
line_number
|
|
— | |
is_autodoc
|
|
— | |
autodoc_element
|
|
— | |
_autodoc_template
|
|
— | |
_autodoc_url_path
|
|
— | |
_autodoc_page_type
|
|
— | |
title
|
|
— | |
doc_content_hash
|
|
— |
Symbols on this page
function
_check_compiled_query_routes
function
_check_query_cors
function
check_query_contracts
Defend the frozen route snapshot even though registration fails first.
Validate cross-origin method and non-safelisted Content-Type preflight.
Validate frozen QUERY metadata, literal clients, and CORS declarations.
_check_compiled_query_routes
function
def _check_compiled_query_routes(router: Router) -> list[ContractIssue]
Defend the frozen route snapshot even though registration fails first.
Parameters
| Name | Type | Default | Description |
|---|---|---|---|
router
|
Router
|
— |
_check_query_cors
function
def _check_query_cors(router: Router, middleware_list: list[Any]) -> list[ContractIssue]
Validate cross-origin method and non-safelisted Content-Type preflight.
Parameters
| Name | Type | Default | Description |
|---|---|---|---|
router
|
Router
|
— | |
middleware_list
|
list[Any]
|
— |
check_query_contracts
function
def check_query_contracts(router: Router, template_sources: dict[str, str], middleware_list: list[Any]) -> list[ContractIssue]
Validate frozen QUERY metadata, literal clients, and CORS declarations.
Parameters
| Name | Type | Default | Description |
|---|---|---|---|
router
|
Router
|
— | |
template_sources
|
dict[str, str]
|
— | |
middleware_list
|
list[Any]
|
— |
View source · /home/runner/work/chirp/chirp/site/../src/chirp/contracts/rules_query.py:1