<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;"><div id="bloop_customfont" style="font-family:Helvetica,Arial;font-size:13px; color: rgba(0,0,0,1.0); margin: 0px; line-height: auto;">Hi folks,&nbsp;</div><div><br></div><div>I have a&nbsp;<i>HttpHandler</i> that I want to reach with POST requests&nbsp;<i>only</i>.&nbsp;</div><div>I tried&nbsp;<i>exchange.setRequestMethod(new HttpString("POST”))</i>&nbsp;inside <i>handleRequest()</i>, but the <i>HttpHandler</i> still responds to&nbsp;<i>GET</i>&nbsp;requests.&nbsp;</div><div><br></div><div>Is there any way to do this?&nbsp;</div><div><br></div><div>In case you’d like to check out the code, it can be found&nbsp;<span style="color: rgb(0, 0, 0);"><a href="https://github.com/Dinduks/cacophony/blob/f528633cafffc22e5bb354360f7310fe8a453c67/src/main/java/com/dindane/cacophony/App.java">here</a></span>.&nbsp;</div><div>Thank you.&nbsp;</div><div><br></div><div>Samy&nbsp;</div></body></html>