This directory contains Python ASGI applications used for testing the Python-Node integration.
Basic ASGI application that returns a simple "Hello, world!" response. Used for testing basic request/response handling.
ASGI application that echoes back request information as JSON. Used for testing:
- Request method, path, and headers parsing
- Request body handling
- Custom response headers
ASGI application that returns different HTTP status codes based on the request path. Used for testing HTTP status code handling.
ASGI application that streams the response body in chunks. Used for testing streaming responses with the more_body flag.
ASGI application that raises an exception for certain paths. Used for testing error handling and exception propagation.
All applications follow the ASGI 3.0 specification:
- Receive HTTP scope dictionary with request information
- Use
receive()callable to get request body - Use
send()callable to send response start and body messages - Handle async/await properly for all operations