class Timeout

internal  
 

Constants

private MAXIMUM_VALUE

Methods

static string
encode(float $seconds)

Encode seconds as a gRPC timeout header value.

static float
decode(string $header)

Decode a gRPC timeout header value into seconds.

Details

at line 19
static string encode(float $seconds)

Encode seconds as a gRPC timeout header value.

Parameters

float $seconds

Return Value

string

at line 48
static float decode(string $header)

Decode a gRPC timeout header value into seconds.

Parameters

string $header

Return Value

float