Skip to content

Use a more flexible type for hhtp headers signature #253

Closed

Description

@axelsrz

The headers property return type is declared as Dict[str, str], but in real HTTP requests, headers can have multiple values for the same key. Consider using Dict[str, Union[str, List[str]]] or a more flexible type like Mapping[str, str] that can accommodate framework-specific header types (e.g., aiohttp.multidict.CIMultiDictProxy, fastapi.datastructures.Headers).

Originally posted by @Copilot in #221 (comment)

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions