Switch addHeader to setHeader and introduce HttpMethod enum