Merge pull request #1163 from taku0/content-type_octet-stream
feat(headers): add ContentType::octet_stream() constructor
This commit is contained in:
		| @@ -95,6 +95,12 @@ impl ContentType { | ||||
|     pub fn png() -> ContentType { | ||||
|         ContentType(mime!(Image/Png)) | ||||
|     } | ||||
|  | ||||
|     /// A constructor  to easily create a `Content-Type: application/octet-stream` header. | ||||
|     #[inline] | ||||
|     pub fn octet_stream() -> ContentType { | ||||
|         ContentType(mime!(Application/OctetStream)) | ||||
|     } | ||||
| } | ||||
|  | ||||
| impl Eq for ContentType {} | ||||
|   | ||||
		Reference in New Issue
	
	Block a user