MultiValueMapping protocol — shared interface for Headers, QueryParams, FormData.
A structural protocol so middleware and utilities can accept any multi-valued mapping without coupling to the concrete type.
_internal.multimap
| 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
MultiValueMapping
class
A read-only string mapping where keys can have multiple values.
__getitem__returns the first value for a key.
get_listreturns all values for a key.
Structurally compatible withMapping[str, str] plus get_list.
Defined with explicit dunder methods because Python 3.14 Protocols
cannot inherit from non-Protocol ABCs likeMapping.
View source · /home/runner/work/chirp/chirp/site/../src/chirp/_internal/multimap.py:1