Download Now

    Reference TUrl

    Declared in Codebot.Networking.Web.pas on line 33

    TUrl parses urls such as https://example.com:8080/resource and captures the component values
      TUrl = record
      public
        { Convert a TUrl to a string }
        class operator Implicit(const Value: TUrl): string;
        { Convert a string to a TUrl }
        class operator Implicit(const Value: string): TUrl;
        { Create a TUrl given a string }
        class function Create(const S: string): TUrl; static;
        { The protocol portion of the url, for example HTTP }
        property Protocol: string read FProtocol;
        { The port portion of the url, for example 8080 }
        property Port: Word read FPort;
        { The domain portion of the url, for example www.google.com }
        property Domain: string read FDomain;
        { The resource portion of the url, for example /search/?query=hello }
        property Resource: string read FResource;
        { Flag indicating if SSL should be used }
        property Secure: Boolean read FSecure;
        { Flag indicating if a url is properly formatted }
        property Valid: Boolean read FValid;
        { Convert the url back to a string }
        property AsString: string read GetAsString;
      end;