The cl-mime-from-string Reference Manual

Table of Contents

Next: , Previous: , Up: (dir)   [Contents][Index]

The cl-mime-from-string Reference Manual

This is the cl-mime-from-string Reference Manual, version 1, generated automatically by Declt version 3.0 "Montgomery Scott" on Tue Apr 28 11:07:46 2020 GMT+0.


Next: , Previous: , Up: Top   [Contents][Index]

1 Introduction

cl-mime-from-string

This is a single function library. the one function: mime-type-from-string takes a single string and returns the mime-type based on the extension if there is no extension then it will return the value of default

(cl-mime-from-string:mime-type-from-string "abc.txt") -> "text/plain"

License

MIT


Next: , Previous: , Up: Top   [Contents][Index]

2 Systems

The main system appears first, followed by any subsystem dependency.


Previous: , Up: Systems   [Contents][Index]

2.1 cl-mime-from-string

Author

K1D77A

License

MIT

Description

A one function library to return a mime-type based on the file extension found at the end of a string. ie abc.txt -> text/plain. The common types implemented are from https://developer.mozilla.org/en-US/docs/Web/HTTP/Basics_of_HTTP/MIME_types/Common_types

Version

1

Source

cl-mime-from-string.asd (file)

Components

Next: , Previous: , Up: Top   [Contents][Index]

3 Files

Files are sorted by type and then listed depth-first from the systems components trees.


Previous: , Up: Files   [Contents][Index]

3.1 Lisp


Next: , Previous: , Up: Lisp files   [Contents][Index]

3.1.1 cl-mime-from-string.asd

Location

cl-mime-from-string.asd

Systems

cl-mime-from-string (system)


Next: , Previous: , Up: Lisp files   [Contents][Index]

3.1.2 cl-mime-from-string/package.lisp

Parent

cl-mime-from-string (system)

Location

package.lisp

Packages

cl-mime-from-string


Previous: , Up: Lisp files   [Contents][Index]

3.1.3 cl-mime-from-string/cl-mime-from-string.lisp

Dependency

package.lisp (file)

Parent

cl-mime-from-string (system)

Location

cl-mime-from-string.lisp

Exported Definitions

mime-type-from-string (function)

Internal Definitions

Next: , Previous: , Up: Top   [Contents][Index]

4 Packages

Packages are listed by definition order.


Previous: , Up: Packages   [Contents][Index]

4.1 cl-mime-from-string

Source

package.lisp (file)

Use List

common-lisp

Exported Definitions

mime-type-from-string (function)

Internal Definitions

Next: , Previous: , Up: Top   [Contents][Index]

5 Definitions

Definitions are sorted by export status, category, package, and then by lexicographic order.


Next: , Previous: , Up: Definitions   [Contents][Index]

5.1 Exported definitions


Previous: , Up: Exported definitions   [Contents][Index]

5.1.1 Functions

Function: mime-type-from-string FILE-STRING &optional DEFAULT

takes in a string like ’abc.txt’ and returns its associated mime-type from https://developer.mozilla.org/en-US/docs/Web/HTTP/Basics_of_HTTP/MIME_types/Common_types. If there is no extension, or one that is unknown then the value of default is returned

Package

cl-mime-from-string

Source

cl-mime-from-string.lisp (file)


Previous: , Up: Definitions   [Contents][Index]

5.2 Internal definitions


Next: , Previous: , Up: Internal definitions   [Contents][Index]

5.2.1 Macros

Macro: string-case STRING &body CASES
Package

cl-mime-from-string

Source

cl-mime-from-string.lisp (file)


Previous: , Up: Internal definitions   [Contents][Index]

5.2.2 Functions

Function: to-cond-form-string= STR1 FORM
Package

cl-mime-from-string

Source

cl-mime-from-string.lisp (file)


Previous: , Up: Top   [Contents][Index]

Appendix A Indexes


Next: , Previous: , Up: Indexes   [Contents][Index]

A.1 Concepts

Jump to:   C   F   L  
Index Entry  Section

C
cl-mime-from-string.asd: The cl-mime-from-string․asd file
cl-mime-from-string/cl-mime-from-string.lisp: The cl-mime-from-string/cl-mime-from-string․lisp file
cl-mime-from-string/package.lisp: The cl-mime-from-string/package․lisp file

F
File, Lisp, cl-mime-from-string.asd: The cl-mime-from-string․asd file
File, Lisp, cl-mime-from-string/cl-mime-from-string.lisp: The cl-mime-from-string/cl-mime-from-string․lisp file
File, Lisp, cl-mime-from-string/package.lisp: The cl-mime-from-string/package․lisp file

L
Lisp File, cl-mime-from-string.asd: The cl-mime-from-string․asd file
Lisp File, cl-mime-from-string/cl-mime-from-string.lisp: The cl-mime-from-string/cl-mime-from-string․lisp file
Lisp File, cl-mime-from-string/package.lisp: The cl-mime-from-string/package․lisp file

Jump to:   C   F   L  

Next: , Previous: , Up: Indexes   [Contents][Index]

A.2 Functions

Jump to:   F   M   S   T  
Index Entry  Section

F
Function, mime-type-from-string: Exported functions
Function, to-cond-form-string=: Internal functions

M
Macro, string-case: Internal macros
mime-type-from-string: Exported functions

S
string-case: Internal macros

T
to-cond-form-string=: Internal functions

Jump to:   F   M   S   T  

Next: , Previous: , Up: Indexes   [Contents][Index]

A.3 Variables


Previous: , Up: Indexes   [Contents][Index]

A.4 Data types

Jump to:   C   P   S  
Index Entry  Section

C
cl-mime-from-string: The cl-mime-from-string system
cl-mime-from-string: The cl-mime-from-string package

P
Package, cl-mime-from-string: The cl-mime-from-string package

S
System, cl-mime-from-string: The cl-mime-from-string system

Jump to:   C   P   S