TrailersSource

interface TrailersSource

Returns the trailers that follow an HTTP response, blocking if they aren't ready yet. Implementations of this interface should respond to Call.cancel by immediately throwing an IOException.

Most callers won't need this interface, and should use Response.trailers instead.

This interface is for test and production code that creates Response instances without making an HTTP call to a remote server.

Types

Link copied to clipboard
object Companion

Functions

Link copied to clipboard
abstract fun get(): Headers
Link copied to clipboard
open fun peek(): Headers?