Added post handler and custom response headers