Server¶
The page contains all information about aiohttp Server API:
- Tutorial
- Quickstart
- Advanced Usage
- Unicode support
- Peer disconnection
- Passing a coroutine into run_app and Gunicorn
- Custom Routing Criteria
- Static file handling
- Template Rendering
- Reading from the same task in WebSockets
- Data Sharing aka No Singletons Please
- ContextVars support
- Middlewares
- Signals
- Cleanup Context
- Nested applications
- Expect Header
- Custom resource implementation
- Application runners
- Graceful shutdown
- Background tasks
- Handling error pages
- Deploying behind a Proxy
- Swagger support
- CORS support
- Debug Toolbar
- Dev Tools
- Low Level
- Reference
- Request and Base Request
BaseRequest
BaseRequest.version
BaseRequest.method
BaseRequest.url
BaseRequest.rel_url
BaseRequest.scheme
BaseRequest.secure
BaseRequest.forwarded
BaseRequest.host
BaseRequest.remote
BaseRequest.path_qs
BaseRequest.path
BaseRequest.raw_path
BaseRequest.query
BaseRequest.query_string
BaseRequest.headers
BaseRequest.raw_headers
BaseRequest.keep_alive
BaseRequest.transport
BaseRequest.loop
BaseRequest.cookies
BaseRequest.content
BaseRequest.body_exists
BaseRequest.can_read_body
BaseRequest.has_body
BaseRequest.content_type
BaseRequest.charset
BaseRequest.content_length
BaseRequest.http_range
BaseRequest.if_modified_since
BaseRequest.if_unmodified_since
BaseRequest.if_match
BaseRequest.if_none_match
BaseRequest.if_range
BaseRequest.clone()
BaseRequest.get_extra_info()
Request
- Response classes
- StreamResponse
StreamResponse
StreamResponse.prepared
StreamResponse.task
StreamResponse.status
StreamResponse.reason
StreamResponse.set_status()
StreamResponse.keep_alive
StreamResponse.force_close()
StreamResponse.compression
StreamResponse.enable_compression()
StreamResponse.chunked
StreamResponse.enable_chunked_encoding()
StreamResponse.headers
StreamResponse.cookies
StreamResponse.set_cookie()
StreamResponse.del_cookie()
StreamResponse.content_length
StreamResponse.content_type
StreamResponse.charset
StreamResponse.last_modified
StreamResponse.etag
- Response
- WebSocketResponse
- WebSocketReady
- json_response
- HTTP Exceptions
- StreamResponse
- Application and Router
- Application
Application
Application.router
Application.logger
Application.loop
Application.debug
Application.on_response_prepare
Application.on_startup
Application.on_shutdown
Application.on_cleanup
Application.cleanup_ctx
Application.add_subapp()
Application.add_domain()
Application.add_routes()
Application.make_handler()
- Server
- Router
UrlDispatcher
UrlDispatcher.add_resource()
UrlDispatcher.add_route()
UrlDispatcher.add_routes()
UrlDispatcher.add_get()
UrlDispatcher.add_post()
UrlDispatcher.add_head()
UrlDispatcher.add_put()
UrlDispatcher.add_patch()
UrlDispatcher.add_delete()
UrlDispatcher.add_view()
UrlDispatcher.add_static()
UrlDispatcher.resources()
UrlDispatcher.routes()
UrlDispatcher.named_resources()
- Resource
- Route
- RouteDef and StaticDef
- RouteTableDef
- MatchInfo
- View
- Application
- Running Applications
- Utilities
- Constants
- Middlewares
- Request and Base Request
- Logging
- Testing
- Deployment