HttpRequestTestCase constructor

const HttpRequestTestCase({
  1. required String id,
  2. String? documentation,
  3. required ShapeId protocol,
  4. ShapeId? authScheme,
  5. String? body,
  6. String? bodyMediaType,
  7. Map<String, Object?> params = const {},
  8. ShapeId? vendorParamsShape,
  9. Map<String, Object?> vendorParams = const {},
  10. Map<String, String> headers = const {},
  11. List<String> forbidHeaders = const [],
  12. List<String> requireHeaders = const [],
  13. List<String> tags = const [],
  14. AppliesTo? appliesTo,
  15. required String method,
  16. required String uri,
  17. String? host,
  18. String? resolvedHost,
  19. List<String> queryParams = const [],
  20. List<String> forbidQueryParams = const [],
  21. List<String> requireQueryParams = const [],
})

Implementation

const HttpRequestTestCase({
  required super.id,
  super.documentation,
  required super.protocol,
  super.authScheme,
  super.body,
  super.bodyMediaType,
  super.params,
  super.vendorParamsShape,
  super.vendorParams,
  super.headers,
  super.forbidHeaders,
  super.requireHeaders,
  super.tags,
  super.appliesTo,
  required this.method,
  required this.uri,
  this.host,
  this.resolvedHost,
  this.queryParams = const [],
  this.forbidQueryParams = const [],
  this.requireQueryParams = const [],
});