Sign in Join
FPDoc Onlineexperiment

ExcludeHTTPPathDelimiter function

In unit HTTPProtocol

Removes trailing forward slash from a URL path.

Declaration

pascal
function ExcludeHTTPPathDelimiter(const AStr: string): string

Arguments

AStr

The path string to process.

Function result

The path string without trailing slash.

Description

Removes the trailing forward slash from a path string if present. Useful for normalizing file paths in URLs.

See also

An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.