HttpClient.getContext

Gets a value from the client's context.

class HttpClient
final
T
getContext
(
T
)
(
string name
,
lazy T defaultValue = T.init
)

Parameters

name string

The name of the value to retrieve.

defaultValue T

The default value to retrieve if the value wasn't found in the context.

Return Value

Type: T

The value if found, defaultValue otherwise.

Meta