HTTP Packet Capture
In Egern, the http_captures
configuration allows you to define specific domain name wildcards for which the HTTP requests and responses will be recorded by the application. This is particularly useful for debugging and monitoring HTTP interactions for specific domains.
Configuration Explanation
http_captures
is an array that contains domain name strings, which can include wildcards. When an HTTP request or response’s domain matches any wildcard in this array, that request or response will be recorded by the application.
Configuration Example
Here is an example of the http_captures
configuration:
http_captures:
- "*.example.com"
- "test.com"
In this configuration, two domain wildcards are specified: one is *.example.com
, which will match all subdomains ending with example.com
; the other is test.com
, which will match this domain exactly. When the application processes HTTP requests or responses that match either of these patterns, they will be recorded.