To understand how HTTP::Proxy works, you need to know what happens during a HTTP connection.
A HTTP connection is divided in two messages:
Request
GET / HTTP/1.1
Response
HTTP/1.1 200 OK