HttpAgent.fromUri constructor

HttpAgent.fromUri(
  1. Uri uri, {
  2. HttpAgentOptions? options,
})

Implementation

factory HttpAgent.fromUri(Uri uri, {HttpAgentOptions? options}) {
  return HttpAgent(
    defaultHost: uri.host,
    defaultPort: uri.port,
    defaultProtocol: uri.scheme,
    options: options,
  );
}