createResponseContext method

  1. @override
Future<ShelfResponseContext> createResponseContext(
  1. Request request,
  2. ShelfResponseContext? response, [
  3. ShelfRequestContext? correspondingRequest
])

Implementation

@override
Future<ShelfResponseContext> createResponseContext(
    shelf.Request request, ShelfResponseContext? response,
    [ShelfRequestContext? correspondingRequest]) {
  // Return the original response.
  return Future.value(response!..correspondingRequest = correspondingRequest);
}