This makes me realize we should probably add one such function to `cowboy_http`.