Added a mechanism to do muxing based on http methods