HttpInteraction constructor
HttpInteraction({
- required int id,
- Uri? uri,
- String? method,
- HttpRequest? request,
- HttpResponse? response,
- HttpError? error,
Creates a HttpInteraction.
Usually id is the hashCode of the original request object,
for example HttpClientRequest.hashCode.
This is used to be able to later update the interaction.
Implementation
HttpInteraction({
required this.id,
this.uri,
this.method,
this.request,
this.response,
this.error,
});