Working not-DRY http interface