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.

installation

 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

Swoft2-request-flow

Features

  • 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
/docs/2.x/en/http-server/index.html
progress-bar