Implement securer HTTP API as per s-s-x's merge request