Table of Contents

HttpMethodAttribute Class

Base class of the attributes that define the HTTP method a service operation responds to.

Remarks

Service operations respond to the POST method by default. Add one of the descendant attributes, like HttpGetAttribute, to the method of the service contract interface to change it.

Syntax

Unit: XData.Service.Common

HttpMethodAttribute = class(TCustomAttribute);

Methods

Name Description
HttpMethod Returns the HTTP method defined by the attribute.