HttpChatTransport constructor

HttpChatTransport({
  1. required Uri endpoint,
  2. Client? client,
  3. FutureOr<Map<String, String>> headers()?,
  4. Map<String, dynamic> body(
    1. ChatRequest request
    )?,
})

Implementation

HttpChatTransport({
  required this.endpoint,
  http.Client? client,
  this.headers,
  this.body,
})  : _client = client,
      _ownsClient = client == null;