Skip to content

IncludeHTTPPathDelimiter

Ensures path ends with forward slash

Declaration

Source position: httpdefs.pp line 782

function IncludeHTTPPathDelimiter(const AStr: string) : string;

Arguments

Name Description
AStr HTTP path string to add delimiter to

Function result

Path string with trailing slash delimiter

Description

IncludeHTTPPathDelimiter appends a forward slash ('/') to the end of a path string if it doesn't already end with one, ensuring proper HTTP path formatting.