Skip to content

need 'const' string params #6

@Alexey-T

Description

@Alexey-T
  TOAuth2OnAccessToken = procedure(Sender: TObject; AccessToken, RefreshToken, TokenScope: string;
    expires_in: integer) of object;
    procedure InternalGrantAuthorizationCode(Scope: string);    
    procedure InternalImplicitGrant(Scope: string);    
    function Post(URL: string; Params: TStrings; Response: TOAuth2Response): integer;    

you pass string-params BY VALUE (no word 'const'). it is much slower. must use function F(const s: string).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions