java.lang.Object
com.hedera.hashgraph.sdk.SdkUserAgent
The value the SDK sends as
x-user-agent, on the gRPC leg and the mirror node REST leg alike.
Shared so that the two provably agree. x-user-agent rather than User-Agent because
a browser cannot set the latter — every Hiero SDK's gRPC path already sends the custom spelling, and
sending both would invent a difference between runtimes that no SDK has today.
-
Field Summary
FieldsModifier and TypeFieldDescription(package private) static final StringThe header name, already lowercased. -
Method Summary
-
Field Details
-
HEADER_NAME
The header name, already lowercased.- See Also:
-
-
Method Details
-
value
Extract the user agent. This information is used to gather usage metrics. If the version is not available, the user agent ishiero-sdk-java/DEV.- Returns:
- the user agent value
-