headers property

  1. @override
HttpHeaders headers
override

Returns the client request headers.

The client request headers can be modified until the client request body is written to or closed. After that they become immutable.

Implementation

@override
// ignore: invalid_use_of_visible_for_testing_member
HttpHeaders get headers => super.noSuchMethod(Invocation.getter(#headers),
    returnValue: MockHttpHeaders()) as HttpHeaders;