Class TgoHttpHeaders

DescriptionHierarchyFieldsMethodsProperties

Unit

Declaration

type TgoHttpHeaders = class(TObject)

Description

Http headers class

Hierarchy

  • TObject
  • TgoHttpHeaders

Overview

Methods

Public constructor Create;
Public destructor Destroy; override;
Public procedure AddOrSet(const AName, AValue: String); overload;
Public procedure AddOrSet(const AHeader: String); overload;
Public function Value(const AName: String): String;
Public function IndexOf(const AName: String): Integer;
Public function AsString: String;
Public procedure AsNgHttp2Array(var AHeaders: TArray<nghttp2_nv>);

Properties

Public property Headers: TArray<TgoHttpHeader> read FHeaders write FHeaders;

Description

Methods

Public constructor Create;
 
Public destructor Destroy; override;
 
Public procedure AddOrSet(const AName, AValue: String); overload;

Add or set a header and value to a list of headers

Public procedure AddOrSet(const AHeader: String); overload;
 
Public function Value(const AName: String): String;

Get the value associated with the header

Public function IndexOf(const AName: String): Integer;

Returns the index of the associated header

Public function AsString: String;

Reads headers as http compatible header string

Public procedure AsNgHttp2Array(var AHeaders: TArray<nghttp2_nv>);

Reads headers as ngHttp2 compatible header array

Properties

Public property Headers: TArray<TgoHttpHeader> read FHeaders write FHeaders;
 

Generated by P2PasDoc 0.13.0 on 2017-04-25 12:54:26