Factor out code that returns HTTP method
Factor out code that returns HTTP method

Signed-off-by: Branko Vukelic <26059cc39872530f89fec69552bb1050e1cc2caa@outernet.is>

Outernet-Project/bottle-streamline