RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
HTTPApp.TMethodType Enumeration

TMethodType represents the type of an HTTP request message.

Pascal
TMethodType = (
  mtAny,
  mtGet,
  mtPut,
  mtPost,
  mtHead
);
C++
enum TMethodType {
  mtAny,
  mtGet,
  mtPut,
  mtPost,
  mtHead
};

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.  

 

Copyright(C) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
What do you think about this topic? Send feedback!