handleEndpointRequest method
Translates raw request attributes into a MetaMantle ServerRequest and executes SSR.
Implementation
Future<ServerResponse> handleEndpointRequest({
required String method,
required Uri uri,
required Map<String, String> headers,
List<int>? bodyBytes,
String? clientIp,
}) async {
final request = ServerRequest(
method: method,
uri: uri,
headers: headers,
clientIp: clientIp,
bodyBytes: bodyBytes,
);
return await engine.handleRequest(request);
}