final class MediaType

internal  
 

Constants

PROTOBUF

Methods

static MediaType|null
parse(string $value)

Parse a gRPC media type.

bool
isProtobuf()

Determine whether the media type represents Protocol Buffers.

string|null
subtype()

Return the explicit gRPC representation subtype.

Details

at line 21
static MediaType|null parse(string $value)

Parse a gRPC media type.

Parameters

string $value

Return Value

MediaType|null

at line 39
bool isProtobuf()

Determine whether the media type represents Protocol Buffers.

Return Value

bool

at line 47
string|null subtype()

Return the explicit gRPC representation subtype.

Return Value

string|null