HttpConnect.chain constructor
HttpConnect.chain(
- HttpConnect connect, {
- bool inclusion = true,
- String? uri,
- HttpRequest? request,
- HttpResponse? response,
Instantiates a connection that will be used to include or forward to
- another request handler.
-
uri
- the URI to chain with. If omitted, it is the same asconnect
's.
- It can contain the query string too.
-
inclusion
- whether it is used for inclusion. If true,
- any modification to
connect.response.headers
is ignored.
Implementation
factory HttpConnect.chain(HttpConnect connect, {bool inclusion = true,
String? uri, HttpRequest? request, HttpResponse? response}) {
return inclusion ?
new _IncludedConnect(connect, request, response, uri):
new _ForwardedConnect(connect, request, response, uri);
}