Class TgoHttpHeaders
Unit
Grijjy.Http
Declaration
type TgoHttpHeaders = class(TObject)
Description
Http headers class
Hierarchy
Overview
Methods
|
constructor Create; |
|
destructor Destroy; override; |
|
procedure AddOrSet(const AName, AValue: String); overload; |
|
procedure AddOrSet(const AHeader: String); overload; |
|
function Value(const AName: String): String; |
|
function IndexOf(const AName: String): Integer; |
|
function AsString: String; |
|
procedure AsNgHttp2Array(var AHeaders: TArray<nghttp2_nv>); |
Properties
Description
Methods
|
constructor Create; |
|
|
destructor Destroy; override; |
|
|
procedure AddOrSet(const AName, AValue: String); overload; |
Add or set a header and value to a list of headers
|
|
procedure AddOrSet(const AHeader: String); overload; |
|
|
function Value(const AName: String): String; |
Get the value associated with the header
|
|
function IndexOf(const AName: String): Integer; |
Returns the index of the associated header
|
|
function AsString: String; |
Reads headers as http compatible header string
|
|
procedure AsNgHttp2Array(var AHeaders: TArray<nghttp2_nv>); |
Reads headers as ngHttp2 compatible header array
|
Properties
|
property Headers: TArray<TgoHttpHeader> read FHeaders write FHeaders; |
|
Generated by P2PasDoc 0.13.0 on 2017-04-25 12:54:26
|