Skip to content

PercentEncode

[Source]

Percent-encode characters that are not allowed unencoded in the specified URI component per RFC 3986.

For URIPartHost, this applies to reg-name hosts only. IP-literals (IPv6 addresses and IPvFuture in brackets) have their own syntax and should not be percent-encoded — pass them through unchanged.

primitive val PercentEncode

Constructors

create

[Source]

new val create()
: PercentEncode val^

Returns


Public Functions

apply

[Source]

fun box apply(
  input: String val,
  part: (URIPartUserinfo val | URIPartHost val | URIPartPath val | 
    URIPartQuery val | URIPartFragment val))
: String val

Parameters

Returns


eq

[Source]

fun box eq(
  that: PercentEncode val)
: Bool val

Parameters

Returns


ne

[Source]

fun box ne(
  that: PercentEncode val)
: Bool val

Parameters

Returns