IncludeHTTPPathDelimiter¶
Ensures a URL path ends with a forward slash.
Declaration¶
Source position: httpprotocol.pp line 161
function IncludeHTTPPathDelimiter(const AStr: string) : string;
Arguments¶
| Name | Description |
|---|---|
| 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¶
| Name | Description |
|---|---|
| ExcludeHTTPPathDelimiter | Removes trailing forward slash from a URL path. |