Ocean/MimeTypes/Write2HTTP.go

11 lines
218 B
Go
Raw Normal View History

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