Record TBrookHTTPRequestMethodHelper

Hierarchy
Properties

Unit

Declaration

type TBrookHTTPRequestMethodHelper = record helper for TBrookHTTPRequestMethod

Description

Type helper for HTTP verb conversion.

Overview

Fields

Public nested const METHODS: array[TBrookHTTPRequestMethod] of string = ('Unknown', 'GET', 'POST', 'PUT', 'DELETE', 'PATCH', 'OPTIONS', 'HEAD');

Methods

Public function ToString: string; inline;
Public function FromString(const AMethod: string): TBrookHTTPRequestMethod; inline;

Description

Fields

Public nested const METHODS: array[TBrookHTTPRequestMethod] of string = ('Unknown', 'GET', 'POST', 'PUT', 'DELETE', 'PATCH', 'OPTIONS', 'HEAD');

Holds the name of HTTP verbs.

Methods

Public function ToString: string; inline;

Converts a TBrookHTTPRequestMethod to string.

Public function FromString(const AMethod: string): TBrookHTTPRequestMethod; inline;

Returns a TBrookHTTPRequestMethod from a string.


Generated by PasDoc 0.16.0.