Created
October 23, 2019 04:55
-
-
Save nirzaf/960fc1ebd20938fb065595404d091399 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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