Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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

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)