Unit 'httpprotocol' Package
[Overview][Constants][Types][Procedures and functions][Index] [#fcl]

IncludeHTTPPathDelimiter

Ensures a URL path ends with a forward slash.

Declaration

Source position: httpprotocol.pp line 161

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

ExcludeHTTPPathDelimiter

  

Removes trailing forward slash from a URL path.


Documentation generated on: Dec 15 2025