HTTPRequestMetadata class

HTTP request metadata for optimization and security filtering

Constructors

HTTPRequestMetadata({required String method, required Uri url, Map<String, String> headers = const {}, String? body, required DateTime startTime, required Stopwatch stopwatch})

Properties

body → String?
final
hashCode → int
The hash code for this object.
no setterinherited
headers → Map<String, String>
final
method → String
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
startTime → DateTime
final
stopwatch → Stopwatch
final
url → Uri
final

Methods

getFilteredHeaders() → Map<String, String>
Extract relevant headers for capture (security-filtered)
getSafeRequestBody() → String?
Extract safe request body (limit size and filter sensitive data)
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
shouldCapture(Set<String> urlBlacklist) → bool
Check if request should be captured based on URL patterns with wildcard support Supports wildcards (*) in patterns for flexible matching
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited