Sign in Join
FPDoc Onlineexperiment

IncludeHTTPPathDelimiter function

In unit HTTPProtocol

Ensures a URL path ends with a forward slash.

Declaration

pascal
function IncludeHTTPPathDelimiter(const AStr: string): string

Arguments

AStr

The path string to process.

Function result

The path string with trailing slash.

Description

Adds a trailing forward slash to a path string if it doesn't already have one. Useful for normalizing directory paths in URLs.

See also

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