Http server

Based on the \Swoole\Http\Server implementation of the coroutine HTTP service, the framework layer is well encapsulated, users can write code according to the traditional MVC way, you can get the ultra-high performance brought by the coroutine.


 composer require swoft/http-server 

Http life cycle

Http life cycle

Understand the request life cycle, help understand the components of the HTTP service, and write better code.

Request processing flow



  • PSR-7-based HTTP message implementation
  • Middleware based on PSR-15
  • @Controller flexible controller annotation
  • @RequestMapping flexible routing annotation

Git warehouse

Participate in the contribution

Welcome to participate in the contribution, you can

  • Fork our development warehouse swewt/component
  • Modify the code and then initiate the PR
  • About PR launch of Notes