Skip to content

Docs information on MIMEs? #56768

Open
@nathanrboyer

Description

@nathanrboyer

I was reading through the docs section on Custom pretty-printing which introduces adding methods of show for different MIME types, but I have not been able to find the following information on MIMEs in the docs:

  1. What is a MIME?
  2. What MIMEs are available, and which should I implement for my custom type?
  3. When to use each of the various MIME creation methods shown and what the differences are?
    a. show(stdout, ::MIME("text/plain"), "hi")
    b. show(stdout, MIME("text/plain"), "hi")
    c. show(stdout, MIME"text/plain", "hi")
    d. show(stdout, "text/plain", "hi").

The docs passage linked above has links to Networking and Streams and Multimedia I/O, but neither contain the information I am looking for. I imagine that information should be added to the top of Multimedia I/O, but I have not been able to find the answers myself yet outside of Wikipedia.

(I have an open PR #56767 on the Custom pretty-printing section to add other clarifications, but I'm not sure that is the place to add information about the MIMEs themselves.)

Metadata

Metadata

Assignees

No one assigned

    Labels

    display and printingAesthetics and correctness of printed representations of objects.docsThis change adds or pertains to documentation

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions