Table of Contents

TTMSMCPHTTPServerMethod Enumeration

Request method of an incoming request. hsmUnknown is a method the server did not recognize, hsmHEAD asks for headers only, hsmGET retrieves, hsmPOST submits, hsmDELETE removes, hsmPUT stores, hsmTRACE echoes the request back, and hsmOPTION asks which methods are available.

API unit family: TMS.MCP.HTTPServer

Remarks

Recognizing the method does not mean the server acts on it: a handler decides which methods it answers and rejects the rest. Note that the last value is named in the singular although the method it stands for is OPTIONS.

Members

Name Description
hsmUnknown Method the server did not recognize. A handler normally answers such a request with a rejection rather than acting on it.
hsmHEAD Asks for the headers a retrieval would return, without the body itself.
hsmGET Retrieves the addressed entity. This is also the method a client uses to open a long-lived event stream.
hsmPOST Submits a body to the addressed entity. Protocol messages a client sends arrive with this method.
hsmDELETE Removes the addressed entity. A client ends a session with it.
hsmPUT Stores the supplied body as the addressed entity, replacing what was there.
hsmTRACE Asks the server to echo the request back, for diagnosing what reached it.
hsmOPTION Asks which methods the addressed entity accepts. A browser sends it ahead of a cross-origin request.