Common Function to Get Request Type.

Common Function to Get Request Type.