uriHost property

String? uriHost
inherited

Uri's

Implementation

String? get uriHost {
  final host = getFirstOption(OptionType.uriHost);
  return host?.toString();
}
  1. @internal
void uriHost=(String? value)
inherited

Implementation

@internal
set uriHost(final String? value) {
  if (value == null) {
    throw ArgumentError.notNull('Message::uriHost');
  }
  if (value.isEmpty || value.length > 255) {
    throw ArgumentError.value(
      value.length,
      'Message::uriHost',
      "URI-Host option's length must be between 1 and 255 inclusive",
    );
  }
  setOption(CoapOption.createString(OptionType.uriHost, value));
}