Transmission::RPC::SessionTransport
Inherits JSON::RPC::HTTPTransport < JSON::RPC::Transport < Reference < Object
The HTTP transport for Transmission's RPC endpoint.
Transmission guards its RPC endpoint with a CSRF token. The first request
(and any request after the token rotates) is answered with 409 Conflict
and the correct token in the X-Transmission-Session-Id header. This
transport captures that token and transparently replays the request, so
callers never see the 409.
Constants
The header Transmission uses to carry its CSRF token.
Instance methods
Sends body (a serialized JSON-RPC request) and returns the raw
response body. Must raise {TransportError} on any transport-level
failure.