HTTP messages are the foundation of web development. Web browsers and HTTP clients such as cURL create HTTP request messages that are sent to a web server, which provides an HTTP response message. Server-side code receives an HTTP request message, and returns an HTTP response message. HTTP messages are typically abstracted from the end-user consumer, but as developers, we typically need to know how they are structured and how to access or manipulate them in order to perform our tasks, whether that might be making a request to an HTTP API, or handling an incoming request. The first line of a request is the "request line", and contains, in order, the HTTP request method, the request target (usually either an absolute URI or a path on the web server), and the HTTP protocol version.

Features

  • Note that this is not a HTTP message implementation of its own
  • It is merely an interface that describes a HTTP message
  • Case-insensitive header field names
  • Headers are retrieved by name from classes implementing the MessageInterface in a case-insensitive manner
  • Non-conforming HTTP applications may depend on a certain case
  • Request Targets and URIs

Project Samples

Project Activity

See All Activity >

Categories

Communications

License

MIT License

Follow PSR http Message

PSR http Message Web Site

nel_h2
MongoDB Atlas runs apps anywhere Icon
MongoDB Atlas runs apps anywhere

Deploy in 115+ regions with the modern database for every enterprise.

MongoDB Atlas gives you the freedom to build and run modern applications anywhere—across AWS, Azure, and Google Cloud. With global availability in over 115 regions, Atlas lets you deploy close to your users, meet compliance needs, and scale with confidence across any geography.
Start Free
Rate This Project
Login To Rate This Project

User Reviews

Be the first to post a review of PSR http Message!

Additional Project Details

Programming Language

PHP

Related Categories

PHP Communications Software

Registered

2021-08-31