of

fun of(value: String?): ChannelBinding

Parses a setting from its URL spelling, accepting the enum name as well.

A stated setting that matches nothing is refused.

Return

The matching setting, or PREFER when value is null.

Parameters

value

disable, prefer or require, case-insensitive. null means the setting was not stated at all.

Throws

INVALID_ARGUMENT if value is stated but unrecognized.