Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/markwhitaker/mimetypes.net
MIME type constants for your .NET projects
https://github.com/markwhitaker/mimetypes.net
content-type content-types dotnet library mime mime-type mime-types
Last synced: about 10 hours ago
JSON representation
MIME type constants for your .NET projects
- Host: GitHub
- URL: https://github.com/markwhitaker/mimetypes.net
- Owner: markwhitaker
- License: mit
- Created: 2019-10-13T11:52:21.000Z (about 5 years ago)
- Default Branch: main
- Last Pushed: 2024-03-29T08:41:17.000Z (8 months ago)
- Last Synced: 2024-04-26T17:10:52.032Z (7 months ago)
- Topics: content-type, content-types, dotnet, library, mime, mime-type, mime-types
- Language: C#
- Homepage:
- Size: 203 KB
- Stars: 13
- Watchers: 3
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
![icon](Artwork/MimeTypes-icon-100.png)
# MimeTypes.NET [![Build and test](https://github.com/markwhitaker/MimeTypes.NET/actions/workflows/build-and-test.yml/badge.svg)](https://github.com/markwhitaker/MimeTypes.NET/actions/workflows/build-and-test.yml) [![Publish to NuGet](https://github.com/markwhitaker/MimeTypes.NET/actions/workflows/publish-to-nuget.yml/badge.svg)](https://github.com/markwhitaker/MimeTypes.NET/actions/workflows/publish-to-nuget.yml) [![NuGet Version and Downloads count](https://buildstats.info/nuget/Mainwave.MimeTypes)](https://www.nuget.org/packages/Mainwave.MimeTypes/)
A structured collection of MIME type constants to use in your .NET projects.
Replace this sort of thing...
```
httpContext.Response.ContentType = "application/json";
```with this...
```
httpContext.Response.ContentType = MimeTypes.Application.Json;
```Pull requests welcome!
## Also for .NET developers
![icon](https://raw.githubusercontent.com/markwhitaker/RegexToolbox.NET/main/Artwork/RegexToolbox-icon-32.png) [RegexToolbox.NET](https://github.com/markwhitaker/RegexToolbox.NET): Regular expression tools for .NET developers
## MimeTypes for other languages
![icon](https://raw.githubusercontent.com/markwhitaker/MimeTypes.Java/master/artwork/MimeTypes-icon-32.png) [MimeTypes for Java](https://github.com/markwhitaker/MimeTypes.Java)
![icon](https://raw.githubusercontent.com/markwhitaker/MimeTypes.kt/master/artwork/MimeTypes-icon-32.png) [MimeTypes for Kotlin](https://github.com/markwhitaker/MimeTypes.kt)
![icon](https://raw.githubusercontent.com/markwhitaker/MimeTypes.js/master/artwork/MimeTypes-icon-32.png) [MimeTypes for JavaScript](https://github.com/markwhitaker/MimeTypes.js)