/// <summary> /// Redirects the client to the specified file. /// </summary> public static void ReturnFile(this IDotvvmRequestContext context, byte[] bytes, string fileName, string mimeType, IEnumerable <KeyValuePair <string, string> > additionalHeaders = null) => context.ReturnFile(new MemoryStream(bytes), fileName, mimeType, additionalHeaders);