~/bend-docscommunity

libs/URL.bend checks

raw source on the hub · import qasim-bend-kit@0.1.0.0/libs/URL.bend as URL

1 import
import Base

Definitions

def hex_digit_kind source · line 5 · raw

@n:U32 -> @decimal:Bool -> U32

Encode one byte as a percent escape. The SQL library used this representation; keeping it preserves existing query and form-body behavior.

def hex_digit source · line 10 · raw

@+n:U32 -> U32

def percent_byte source · line 13 · raw

@+byte:U32 -> String

def percent_codepoint_width source · line 16 · raw

@+codepoint:U32 -> @width:U32 -> String

def percent_codepoint source · line 29 · raw

@+codepoint:U32 -> String

def percent_characters source · line 35 · raw

@text:String -> String

def percent_component source · line 43 · raw

@text:String -> String

Percent-encode a URL component as UTF-8 bytes. This deliberately encodes every byte, matching the former SQL.percent_component behavior.