Units Class Hierarchy Classes, Interfaces, Objects and Records Types Variables Constants Functions and Procedures Identifiers Unit dependency graph Classes hierarchy graph |
Class TBrookHttpClient
Unit
BrookHttpClient
Declaration
type TBrookHttpClient = class(TBrookObject)
Description
Client to perform HTTP requests.
Hierarchy
Overview
Methods
|
constructor Create(const ALibrary: string); |
|
class procedure SetLibrary(const ALibrary: string); |
|
class procedure Prepare(out AHttp: TBrookHttpDef); |
|
class function Get(const AUrl: string; AResponse: TStream): Boolean; |
|
class function Post(const AUrl: string; AResponse: TStream): Boolean; |
|
class function Put(const AUrl: string; AResponse: TStream): Boolean; |
|
class function Delete(const AUrl: string; AResponse: TStream): Boolean; |
|
class function Options(const AUrl: string; AResponse: TStream): Boolean; |
|
class function Head(const AUrl: string; AHeaders: TStrings): Boolean; |
|
class function PostForm(const AUrl: string; AFormData, AResponse: TStream): Boolean; |
|
class function PostForm(const AUrl, AFormData: string; AResponse: TStream): Boolean; |
|
class function PutForm(const AUrl: string; AFormData, AResponse: TStream): Boolean; |
|
class function PutForm(const AUrl, AFormData: string; AResponse: TStream): Boolean; |
|
class function PostFile(const AUrl, AFieldName, AFileName: string; AFile, AResponse: TStream): Boolean; |
|
class function PostFile(const AUrl, AFieldName, AFileName: string; AResponse: TStream): Boolean; |
|
function Request(AHttp: TBrookHttpDef): TBrookHttpResult; |
|
function Request(const AMethod, AUrl: string): TBrookHttpResult; |
|
function Request(const AUrl: string): TBrookHttpResult; |
Description
Methods
|
constructor Create(const ALibrary: string); |
Creates an instance of a TBrookHttpClient class.
|
|
class procedure SetLibrary(const ALibrary: string); |
Specifies the library to be used by this class.
|
|
class procedure Prepare(out AHttp: TBrookHttpDef); |
Prepares an instance of TBrookHttpDef .
|
|
class function Get(const AUrl: string; AResponse: TStream): Boolean; |
Sends request by a GET HTTP request method.
|
|
class function Post(const AUrl: string; AResponse: TStream): Boolean; |
Sends request by a POST HTTP request method.
|
|
class function Put(const AUrl: string; AResponse: TStream): Boolean; |
Sends request by a PUT HTTP request method.
|
|
class function Delete(const AUrl: string; AResponse: TStream): Boolean; |
Sends request by a DELETE HTTP request method.
|
|
class function Options(const AUrl: string; AResponse: TStream): Boolean; |
Sends request by an OPTIONS HTTP request method.
|
|
class function Head(const AUrl: string; AHeaders: TStrings): Boolean; |
Sends request by a HEAD HTTP request method.
|
|
class function PostForm(const AUrl: string; AFormData, AResponse: TStream): Boolean; |
Sends request by a POST HTTP request method, passing a form-data as parameter.
|
|
class function PostForm(const AUrl, AFormData: string; AResponse: TStream): Boolean; |
Sends request by a POST HTTP request method, passing a form-data as parameter.
|
|
class function PutForm(const AUrl: string; AFormData, AResponse: TStream): Boolean; |
Sends request by a PUT HTTP request method, passing a form-data as parameter.
|
|
class function PutForm(const AUrl, AFormData: string; AResponse: TStream): Boolean; |
Sends request by a PUT HTTP request method, passing a form-data as parameter.
|
|
class function PostFile(const AUrl, AFieldName, AFileName: string; AFile, AResponse: TStream): Boolean; |
Sends request by a POST HTTP request method, passing a file as parameter.
|
|
class function PostFile(const AUrl, AFieldName, AFileName: string; AResponse: TStream): Boolean; |
Sends request by a POST HTTP request method, passing a file as parameter.
|
|
function Request(const AMethod, AUrl: string): TBrookHttpResult; |
Performs the request, passing the method and URL as parameter.
|
|
function Request(const AUrl: string): TBrookHttpResult; |
Performs the request, passing URL as parameter.
|
Generated by PasDoc 0.15.0.
|