Swoole HTTP Request

The object of Swoole\HTTP\Request class contains the information of a HTTP request, for example, GET, POST, etc.

You can use the following methods to access the HTTP request data.

Methods

  • Swoole\HTTP\Request->header
  • Swoole\HTTP\Request->server
  • Swoole\HTTP\Request->get
  • Swoole\HTTP\Request->post
  • Swoole\HTTP\Request->cookie
  • Swoole\HTTP\Request->rawcookie
  • Swoole\HTTP\Request->files
  • Swoole\HTTP\Request->rawContent
  • Swoole\HTTP\Request->getContent
  • Swoole\HTTP\Request->getData