2014-04-26 09:18:56 +00:00
|
|
|
package MimeTypes
|
|
|
|
|
2014-10-19 17:19:11 +00:00
|
|
|
import (
|
|
|
|
"net/http"
|
|
|
|
)
|
2014-04-26 09:18:56 +00:00
|
|
|
|
2015-06-17 15:44:52 +00:00
|
|
|
// Function to write a MIME type to a client.
|
2014-04-26 09:18:56 +00:00
|
|
|
func Write2HTTP(response http.ResponseWriter, mime MimeType) {
|
|
|
|
response.Header().Add(`Content-Type`, mime.MimeType)
|
|
|
|
}
|