trailers method

  1. @override
HttpHeaders? trailers(
  1. HttpResponse res
)
override

The trailers of res: they go out after the body on HTTP/2, and are dropped on HTTP/1.1. null when the server sends no trailers.

Implementation

@override
HttpHeaders? trailers(HttpResponse res) =>
    res is NativeResponse ? res.trailers : null;