PHP Architect · Vol 19, Issue 5 · May 2020
Education Station: Anatomy of a Web Response
by Chris Tankersley
Last month, we looked at HTTP requests and how a user agent asks for a specific resource. How do we provide an answer? Web servers send it back in an HTTP response. Let's look at the parts of a response, how to indicate success or failure, and how to build the response body.
The full article is in PHP Architect Vol 19, Issue 5. Subscribe to read it and every new issue.