Skip to content

Instantly share code, notes, and snippets.

@nirzaf
Created Oct 23, 2019
Embed
What would you like to do?
2 references
public class Startup {
public IConfiguration Configuration { get; }
public Startup(IConfiguration configuration)
{
configuration = configuration;
}
// This method gets called by the runtime. Use this met. to add services to the container.
public void ConfigureServices(IServiceCollection services)
{
services.AddMvc();
services.AddResponseCompression(options =>
options.MimeTypes = ResponseCompressionDefaults.MimeTypes.Concat(new[]
{
MediaTypeNames.Application.Octet,
WasmMediaTypeNames.Application.Wasm,
}):
}):
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment