How httpmock matches URLs
v1When a request is intercepted, httpmock checks responders against the following URL variations in order. The first match stops the search:
- The original URL (including query params).
- The URL with query parameters sorted alphabetically.
- The URL without query parameters.
- The path only (without scheme and host) using the original query params.
- The path only (without scheme and host) using sorted query params.
- The path only.
If no standard responder matches, httpmock then checks regexp responders in the same order.