Classe TRestRequest

DescriçãoHierarquiaCamposMétodosProperties

Unit

Declaração

type TRestRequest = class(TObject)

Descrição

Hierarquia

  • TObject
  • TRestRequest

Visão Geral

Métodos

Public constructor Create(aIsSSL: boolean); overload;
Public constructor Create; overload;
Public destructor Destroy; override;
Public function Scheme(aScheme: string): TRestRequest;
Public function Domain(aDomain: string): TRestRequest;
Public function Path(aPath: string): TRestRequest;
Public function Param(aKey: string; aValue: string): TRestRequest;
Public function FileParam(aKey: string; aValue: string): TRestRequest;
Public function WithHeader(aName: string; aValue: string): TRestRequest;
Public function WithCredentials(username, password: string): TRestRequest;
Public function Get: THttpResponse;
Public function Put(aParams: TStringList): THttpResponse;
Public function Post(aParams: TStringList): THttpResponse;
Public function Delete: THttpResponse;
Public function Options: THttpResponse;

Properties

Public property Response: THttpResponse read FResponse;
Public property FullUrl: string read getURLAsStr;
Public property Accept: string read getAccept write setAccept;
Public property ContentType: string read getContentType write setContentType;
Public property BeforeRequest: TBeforeRequest read GetBeforeRequest write SetBeforeRequest;

Descrição

Métodos

Public constructor Create(aIsSSL: boolean); overload;
 
Public constructor Create; overload;
 
Public destructor Destroy; override;
 
Public function Scheme(aScheme: string): TRestRequest;
 
Public function Domain(aDomain: string): TRestRequest;
 
Public function Path(aPath: string): TRestRequest;
 
Public function Param(aKey: string; aValue: string): TRestRequest;
 
Public function FileParam(aKey: string; aValue: string): TRestRequest;
 
Public function WithHeader(aName: string; aValue: string): TRestRequest;
 
Public function WithCredentials(username, password: string): TRestRequest;
 
Public function Get: THttpResponse;
 
Public function Put(aParams: TStringList): THttpResponse;
 
Public function Post(aParams: TStringList): THttpResponse;
 
Public function Delete: THttpResponse;
 
Public function Options: THttpResponse;
 

Properties

Public property Response: THttpResponse read FResponse;
 
Public property FullUrl: string read getURLAsStr;
 
Public property Accept: string read getAccept write setAccept;
 
Public property ContentType: string read getContentType write setContentType;
 
Public property BeforeRequest: TBeforeRequest read GetBeforeRequest write SetBeforeRequest;
 

JBS Soluções 2015