pub struct HttpClient {
    pub api_url: Uri,
    pub http_client: IsahcHttpClient,
    pub x_plex_provides: String,
    pub x_plex_platform: String,
    pub x_plex_platform_version: String,
    pub x_plex_product: String,
    pub x_plex_version: String,
    pub x_plex_device: String,
    pub x_plex_device_name: String,
    pub x_plex_client_identifier: String,
    pub x_plex_sync_version: String,
    /* private fields */
}

Fields

api_url: Urihttp_client: IsahcHttpClientx_plex_provides: String

X-Plex-Provides header value. Comma-separated list.

Should be one or more of controller, server, sync-target, player.

x_plex_platform: String

X-Plex-Platform header value.

Platform name, e.g. iOS, macOS, etc.

x_plex_platform_version: String

X-Plex-Platform-Version header value.

OS version, e.g. 4.3.1

x_plex_product: String

X-Plex-Product header value.

Application name, e.g. Laika, Plex Media Server, Media Link.

x_plex_version: String

X-Plex-Version header value.

Application version, e.g. 10.6.7.

x_plex_device: String

X-Plex-Device header value.

Device name and model number, e.g. iPhone3,2, Motorola XOOM™, LG5200TV.

x_plex_device_name: String

X-Plex-Device-Name header value.

Primary name for the device, e.g. “Plex Web (Chrome)”.

x_plex_client_identifier: String

X-Plex-Client-Identifier header value.

UUID, serial number, or other number unique per device.

N.B. Should be unique for each of your devices.

x_plex_sync_version: String

X-Plex-Sync-Version header value.

Not sure what are the valid values, but at the time of writing Plex Web sends 2 here.

Implementations

Set the client’s authentication token.

Get a reference to the client’s authentication token.

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more

Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more

Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Performs the conversion.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more