this method was just pulled out of `MPUB` to be re-used in the HTTP code path, nothing functionally changed