The register-http-method function enables you to extend the HTTP protocol by registering new HTTP methods. This function is applicable in Init-class directives.
While accepting a connection, the server checks if the method it received is known to it. If the server does not recognize the method, it returns a 501 Method Not Implemented error message.
The following table describes the register-http-method parameters.
Table 5–8 register-http-method Parameters
Parameter |
Description |
---|---|
A comma-separated list of the methods you are registering |
The following example shows the use of register-http-method:
Init fn="register-http-method" methods="MY_METHOD1,MY_METHOD2"
The methods can be called from a Service function in obj.conf, for example:
Service fn="MyHandler" method="MY_METHOD1"