HttpTransport

interface HttpTransport

Simple HTTP client interface used by flow-based RPC. Note that urls passed to this interface are relative and should be resolved relative to some base URL.

Note: HTTP codes that indicate errors are represented by exceptions.

Inheritors

Types

Link copied to clipboard
object Companion
Link copied to clipboard

Base class for exceptions related to connection problems in HttpTransport.

Link copied to clipboard

Should be thrown by HttpTransport methods when the method fails because the connection to the remote server was refused.

Link copied to clipboard

Base class for all exceptions thrown by HttpTransport

Link copied to clipboard

Should be thrown by HttpTransport if the the remote server encountered an error during the processing of the request.

Link copied to clipboard

Should be thrown by HttpTransport methods when a connection was established to the remote server but the connection was terminated before the server responded.

Functions

Link copied to clipboard
abstract suspend fun post(url: String, data: ByteString): ByteString