HttpHelper class

Pure-Dart utility — no HTTP client dependency.

Constructors

HttpHelper()

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

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

Static Methods

generateCacheKey({required String url, Map<String, String>? headers, dynamic body}) String
Generates a stable SHA-256 cache key from the request URL, selected headers, and body. Only content-type, accept, and x-* headers are included so user-agent / auth tokens don't pollute the key.