DataScript: avi.http.method

DataScript

Function avi.http.method()
Description Returns the client’s request method, such as ‘GET’ or ‘POST’.
Events HTTP_REQ
HTTP_RESP
Parameter None
Returns String of the method
Example
method = avi.http.method()
if method ~= "GET" or method ~= "POST" then
   avi.http.response("403")
end

Note: This API is not supported in the events SSL_PRECONNECT, SSL_CLIENTHELLO, and SSL_HANDSHAKE_DONE.