Sign in Join
FPDoc Onlineexperiment

IncludeHTTPPathDelimiter function

In unit HTTPDefs

Ensures path ends with forward slash

Declaration

pascal
function IncludeHTTPPathDelimiter(const AStr: string): string

Arguments

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.

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