createResponseContext method

  1. @override
Future<Http2ResponseContext> createResponseContext(
  1. Socket request,
  2. ServerTransportStream response, [
  3. Http2RequestContext? correspondingRequest
])
override

Implementation

@override
Future<Http2ResponseContext> createResponseContext(
    Socket request, ServerTransportStream response,
    [Http2RequestContext? correspondingRequest]) async {
  return Http2ResponseContext(app, response, correspondingRequest)
    ..encoders.addAll(app.encoders);
}