Skip to main content

Module client_info

Module client_info 

Source
Expand description

Client identity and metadata helpers shared by HTTP and realtime clients.

Structs§

AuthMetadata
Login metadata sent with auth code and verification requests.
ClientIdentity
Application identity sent with Inline HTTP and realtime requests.

Enums§

ClientIdentityError
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 reqwest client builder configured with SDK identity headers.
http_client_builder_for
Builds a reqwest client builder configured with a specific identity.
sdk_version
Returns the version of the inline-sdk crate.
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.