Rust

content_type

Module

Common content types.

Contents

Rust
pub const HTML: &str = "text/html"

text/html.

Rust
pub const IMAGE: &str = "image/*"

image/*: any image.

Rust
pub const IMAGE_BMP: &str = "image/bmp"

image/bmp.

Rust
pub const IMAGE_GIF: &str = "image/gif"

image/gif.

Rust
pub const IMAGE_ICON: &str = "image/x-icon"

image/x-icon.

Rust
pub const IMAGE_JPEG: &str = "image/jpeg"

image/jpeg.

Rust
pub const IMAGE_PNG: &str = "image/png"

image/png.

Rust
pub const IMAGE_SVG: &str = "image/svg+xml"

image/svg+xml.

Rust
pub const IMAGE_WEBP: &str = "image/webp"

image/webp.

Rust
pub const JAVASCRIPT: &str = "text/javascript"

text/javascript.

Rust
pub const JSON: &str = "application/json"

application/json.

Rust
pub const TEXT: &str = "text/plain"

text/plain.

Rust
pub const XML: &str = "text/xml"

text/xml.