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
BaseRequestBaseRequest.versionBaseRequest.methodBaseRequest.urlBaseRequest.rel_urlBaseRequest.schemeBaseRequest.secureBaseRequest.forwardedBaseRequest.hostBaseRequest.remoteBaseRequest.path_qsBaseRequest.pathBaseRequest.raw_pathBaseRequest.queryBaseRequest.query_stringBaseRequest.headersBaseRequest.raw_headersBaseRequest.keep_aliveBaseRequest.transportBaseRequest.loopBaseRequest.cookiesBaseRequest.contentBaseRequest.body_existsBaseRequest.can_read_bodyBaseRequest.has_bodyBaseRequest.content_typeBaseRequest.charsetBaseRequest.content_lengthBaseRequest.http_rangeBaseRequest.if_modified_sinceBaseRequest.if_unmodified_sinceBaseRequest.if_matchBaseRequest.if_none_matchBaseRequest.if_rangeBaseRequest.clone()BaseRequest.get_extra_info()
Request
- Response classes
- StreamResponse
StreamResponseStreamResponse.preparedStreamResponse.taskStreamResponse.statusStreamResponse.reasonStreamResponse.set_status()StreamResponse.keep_aliveStreamResponse.force_close()StreamResponse.compressionStreamResponse.enable_compression()StreamResponse.chunkedStreamResponse.enable_chunked_encoding()StreamResponse.headersStreamResponse.cookiesStreamResponse.set_cookie()StreamResponse.del_cookie()StreamResponse.content_lengthStreamResponse.content_typeStreamResponse.charsetStreamResponse.last_modifiedStreamResponse.etag
- Response
- WebSocketResponse
- WebSocketReady
- json_response
- HTTP Exceptions
- StreamResponse
- Application and Router
- Application
ApplicationApplication.routerApplication.loggerApplication.loopApplication.debugApplication.on_response_prepareApplication.on_startupApplication.on_shutdownApplication.on_cleanupApplication.cleanup_ctxApplication.add_subapp()Application.add_domain()Application.add_routes()Application.make_handler()
- Server
- Router
UrlDispatcherUrlDispatcher.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