HTTP Rules, Policies and Scripting Reference guide
HTTP Requests
Here is the syntax when using rules for http requests

Here is a list of test operators that can be used in rules

Here is a list of policy actions that can be performed on http requests

HTTP Responses
Here is the syntax when using rules for http responses
Here is the list of test operators than can be used

Here is a list of policy actions that can be performed on responses

Additional reference information

Here is list of HTTP headers

Here is a list of HTTP status codes

For some examples, click here Sample Code Examples 101