Skip to content

Instantly share code, notes, and snippets.

@nirzaf
Created October 23, 2019 04:55
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nirzaf/960fc1ebd20938fb065595404d091399 to your computer and use it in GitHub Desktop.
Save nirzaf/960fc1ebd20938fb065595404d091399 to your computer and use it in GitHub Desktop.
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