Web.HTTPApp.TMethodType

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

TMethodType = (mtAny, mtGet, mtPut, mtPost, mtHead, mtDelete, mtPatch);

C++

enum DECLSPEC_DENUM TMethodType : unsigned char { mtAny, mtGet, mtPut, mtPost, mtHead, mtDelete, mtPatch };

Properties

Type Visibility Source Unit Parent
enum public
Web.HTTPApp.pas
Web.HTTPApp.hpp
Web.HTTPApp Web.HTTPApp

Description

TMethodType represents the type of an HTTP request message.

HTTP request messages include a METHOD header that indicates the purpose of the message. TMethodType encodes the most common values of the METHOD header for easy lookup and comparison. Components that respond to HTTP request methods use MethodType to indicate the type of messages to which they respond.

The following table lists the possible values:



Value Meaning

mtAny

On a request object, this indicates a METHOD header that can't be encoded using another TMethodType value. On a component that handles request messages, this indicates that the component will accept any message, regardless of its METHOD header (including any value that can be encoded using another TMethodType value).

mtGet

A request for information associated with the target URL. This corresponds to a METHOD header of GET.

mtPut

A request that the content of the request be used to replace the resource identified by the target URL. This corresponds to a METHOD header of PUT.

mtPost

A request that the application post the content of the request, as appropriate. This corresponds to a METHOD header of POST.

mtHead

A request for the properties of the response message, but not its content. This corresponds to a METHOD header of HEAD.



See Also