http::Uri does not enforce a port. GatewayUri does. Passing GATEWAY_ORIGIN without a port would otherwise succeed for some operations and fail when proxying others as, for example, a request uri authority and gateway origin could mismatch when one has a port and the other does not.
http::Uri does not enforce a port. GatewayUri does. Passing GATEWAY_ORIGIN without a port would otherwise succeed for some operations and fail when proxying others as, for example, a request uri authority and gateway origin could mismatch when one has a port and the other does not.