Expand description
Client identity and metadata helpers shared by HTTP and realtime clients.
Structs§
- Auth
Metadata - Login metadata sent with auth code and verification requests.
- Client
Identity - Application identity sent with Inline HTTP and realtime requests.
Enums§
- Client
Identity Error - Error returned when a client identity cannot be represented in Inline headers.
Constants§
- CLIENT_
TYPE_ HEADER - HTTP header carrying the Inline client type.
- CLIENT_
VERSION_ HEADER - HTTP header carrying the Inline client version.
- SDK_
CLIENT_ TYPE - Default client type used when callers do not provide an application identity.
Functions§
- current_
os_ version - Returns a best-effort operating system version string for realtime init.
- default_
http_ headers - Builds default Inline HTTP headers for the SDK identity.
- default_
http_ headers_ for - Builds Inline HTTP headers for a specific client identity.
- device_
name - Returns a best-effort local device name.
- http_
client_ builder - Builds a
reqwestclient builder configured with SDK identity headers. - http_
client_ builder_ for - Builds a
reqwestclient builder configured with a specific identity. - sdk_
version - Returns the version of the
inline-sdkcrate. - try_
default_ http_ headers_ for - Builds Inline HTTP headers for a specific client identity.
- user_
agent - Builds the default SDK user agent.
- user_
agent_ for - Builds a user agent for a specific client identity.