Applicable in Init-class directives.
This function enables you to extend the HTTP protocol by registering new HTTP methods. You do not need to register the default HTTP methods.
Upon accepting a connection, the server checks whether the method it received is registered. If the server does not recognize the method, it returns a “501 Method Not Implemented” error message.
The following table describes the parameter for the register-http-method function.
Table 5–20 register-http-method Parameters
Parameter |
Description |
---|---|
Comma-separated list of the names of the methods you are registering. |
The following example shows the use of register-http-method and a Service function for one of the methods.
Init fn="register-http-method" methods="MY_METHOD1,MY_METHOD2" Service fn="MyHandler" method="MY_METHOD1" |