Handling HTTP Requests and Responses