Files
herolib/aiprompts/v_core/net/net.http.mime.md
2025-09-02 07:28:13 +02:00

1.2 KiB

module net.http.mime

Contents

exists

fn exists(mt string) bool

returns true if the given MIME type exists

[Return to contents]

get_complete_mime_type

fn get_complete_mime_type(mt string) MimeType

returns a MimeType for the given MIME type

[Return to contents]

get_content_type

fn get_content_type(mt string) string

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

[Return to contents]

get_default_ext

fn get_default_ext(mt string) string

returns the default extension for the given MIME type

[Return to contents]

get_mime_type

fn get_mime_type(ext string) string

returns the MIME type for the given file extension

[Return to contents]

MimeType

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

[Return to contents]

Powered by vdoc. Generated on: 2 Sep 2025 07:16:36