REST.Types.TRESTRequestParameterKind
Delphi
TRESTRequestParameterKind = (
pkCOOKIE,
pkGETorPOST,
pkURLSEGMENT,
pkHTTPHEADER,
pkREQUESTBODY
);
C++
enum DECLSPEC_DENUM TRESTRequestParameterKind : unsigned char { pkCOOKIE, pkGETorPOST, pkURLSEGMENT, pkHTTPHEADER, pkREQUESTBODY };
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
enum | public | REST.Types.pas REST.Types.hpp |
REST.Types | REST.Types |
Description
Specifies the types of parameters that can be added to requests.
This enumeration defines the following values:
pkCOOKIE
: Parameter is put into a cookie.pkGETorPOST
: Parameter is sent as a URL parameter (for GET requests) or as a body parameter (for POST/PUT requests).pkURLSEGMENT
: Parameter is used as value for a URL segment. A URL segment can be defined in a request resource path: customer/{ID}.pkHTTPHEADER
: Parameter is put in the HTTP header of the request.pkREQUESTBODY
: The parameter value is used as a request body. If more than one parameter of this kind exists, the request use a multi-part body.