McpStreamableHttpException constructor

const McpStreamableHttpException({
  1. required int statusCode,
  2. required String reasonPhrase,
  3. required String body,
  4. McpJsonMap? error,
  5. Map<String, List<String>> responseHeaders = const <String, List<String>>{},
  6. List<McpBearerChallenge> bearerChallenges = const <McpBearerChallenge>[],
})

Implementation

const McpStreamableHttpException({
  required this.statusCode,
  required this.reasonPhrase,
  required this.body,
  this.error,
  this.responseHeaders = const <String, List<String>>{},
  this.bearerChallenges = const <McpBearerChallenge>[],
});