Create rules that modify requests and responses for web Testing

can I create rules that modify requests and responses using custom capabilities ?