owns method

  1. @override
bool owns(
  1. HttpResponse res
)
override

True when res is a response of the server: it copies the body when it ends (see takeBody) and sends files itself (see openFile).

Implementation

@override
bool owns(HttpResponse res) => res is NativeResponse;