On this page:
top
up

5.9Miscellaneous UtilitiesπŸ”— i

procedure

( bytes-ci=? b1b2)boolean?

b1:bytes?
b2:bytes?
Compares two bytes case insensitively.

procedure

( url-replace-path procu)url?

proc:((listof path/param?). -> .(listof path/param?))
u:url?
Replaces the URL path of u with proc of the former path.

procedure

( url-path->string url-path)string?

url-path:(listof path/param?)
Formats url-path as a string with "/" as a delimiter and no params.

procedure

( explode-path* p)(listof path-piece? )

Like normalize-path , but does not resolve symlinks.

procedure

( path-without-base basep)(listof path-piece? )

Returns, as a list, the portion of p after base, assuming base is a prefix of p.

procedure

( directory-part p)path?

Returns the directory part of p, returning (current-directory ) if it is relative.

procedure

( build-path-unless-absolute basep)path?

Prepends base to p, unless p is absolute.

procedure

( network-error sfmtv...)void

fmt:string?
v:any/c
Like error , but throws a exn:fail:network .

procedure

( exn->string exn)string?

exn:(or/c exn? any/c )
Formats exn with (error-display-handler ) as a string.

procedure

( read/bytes bstr)printable/c

bstr:bytes?
Extracts a value from bstr using read .

procedure

( write/bytes v)bytes?

Prints v into a byte string using write .

Equivalent to (or/c path-string? (symbols 'up'same)).

top
up

AltStyle γ«γ‚ˆγ£γ¦ε€‰ζ›γ•γ‚ŒγŸγƒšγƒΌγ‚Έ (->γ‚ͺγƒͺγ‚ΈγƒŠγƒ«) /