# Match Rules

{% hint style="info" %}
**Configures:**

* How to relax constraints when matching requests?
  {% endhint %}

{% hint style="info" %}
Match rules only apply to mocking mode.
{% endhint %}

Matching rules allow you customize which component categories of a request are used for matching. By defualt, only request **query params** and **body** are used for matching. Request **method** and **path** are required for matching and not configurable.

## Rule Configuration

<figure><img src="https://3980092275-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MLvhXOE-py5MDUOXDKD%2Fuploads%2Fgit-blob-d323db51875d6183577c1526eeba2552f32b0b73%2FScreen%20Shot%202023-04-12%20at%2010.44.47%20AM.png?alt=media" alt=""><figcaption><p>Figure 1. Matching rules</p></figcaption></figure>

### Method

HTTP verb(s) the rule applies to such as GET, POST, DELETE, etc.

### Pattern

Pattern to match with the request URL to apply the rule to. This supports regular expressions.

### Component

Which components of the request to match on, such as header, body, and query param.

### Modes Applied To

Which agent mode to apply the firewall rule to such as mock.
