Module net.http.mime stdlib

net.http.mime
Version:
0.3.3
License:
MIT
Dependencies from vmod:
0
Imports:
0
Imported by:
0
Repository:
OS-specific
Show selected OS-specific symbols.
Backend-specific
Show selected Backend-specific symbols.

Dependencies defined in v.mod

This section is empty.

Imports

This section is empty.

Imported by

This section is empty.

Aliases

This section is empty.

Constants

This section is empty.

Sum types

This section is empty.

Functions

#fn exists

fn exists(mt string) bool

returns true if the given MIME type exists

#fn get_complete_mime_type

fn get_complete_mime_type(mt string) MimeType

returns a MimeType for the given MIME type

#fn get_content_type

fn get_content_type(mt string) string

returns a content-type header ready to use for the given MIME type

#fn get_default_ext

fn get_default_ext(mt string) string

returns the default extension for the given MIME type

#fn get_mime_type

fn get_mime_type(ext string) string

returns the MIME type for the given file extension

Structs

#struct MimeType

pub struct MimeType {
	source       string
	extensions   []string
	compressible bool
	charset      string
}

Interfaces

This section is empty.

Enums

This section is empty.