fromOptionsOrNull

fun fromOptionsOrNull(scheme: CoapScheme, destinationHost: String, destinationPort: Int, options: OptionSet): CoapUri?(source)

Rebuilds a URI like fromOptions, or returns null where fromOptions throws: for the options of a received request, whose Uri-Port of 0 (a valid option, RFC 7252 §5.10.1) or other bad value is the peer's, not the application's.