Skip to content

ExcludeHTTPPathDelimiter

Removes trailing forward slash from a URL path.

Declaration

Source position: httpprotocol.pp line 162

function ExcludeHTTPPathDelimiter(const AStr: string) : string;

Arguments

Name Description
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

Name Description
IncludeHTTPPathDelimiter Ensures a URL path ends with a forward slash.