add functions and tests for OPTIONS and HEAD methods of http