Understanding HTTP responses
The purpose of inspecting an HTTP request is to determine what kind of response is required. Responses are produced using the features provided by the ServerResponse
class, the most useful of which are described in Table 5.8.
Table 5.8: Useful ServerResponse members
Name |
Description |
|
This |
|
This method sets a response header using the specified name and value. |
|
This |