You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Shelf dynamic routes without the need to use mounts #485
// Create a new ABSOLUTE URI for the child router.// This isolates the child from the parent's base path and ensures the URI is absolute.final originalUri = request.requestedUri;
final newUri = originalUri.replace(
// Explicitly retain scheme, host, and port for absolute URI// Reset the path to only what the child router expects (e.g., /filenames)// pathSegments must be an Iterable<String>
pathSegments: [pathSegment],
);
// 4. Create a brand new Request object using the new absolute URI.final subReq =Request(
request.method,
newUri,
headers: newHeaders,
body:await request.read(),
context: request.context,
);
}
Activity