Aeros.patches.hypercorn

Package Contents

Classes

Config

Functions

run(app, config)

Aeros.patches.hypercorn.run(app, config)[source]
class Aeros.patches.hypercorn.Config(custom_headers: Dict[str, str] = None, *args, **kwargs)[source]

Bases: hypercorn.config.Config

response_headers(self, protocol: str) → List[Tuple[bytes, bytes]][source]

This function is patched to include custom headers, which will be sent in every response. For example to send a custom “server” header or CORS headers all the time.