mirror of
https://github.com/RSS-Bridge/rss-bridge.git
synced 2025-08-05 16:17:28 +02:00
Add getMimeType function
@@ -8,6 +8,7 @@ The `FormatInterface`interface defines functions that need to be implemented by
|
|||||||
* [getCharset](#the-getcharset-function)
|
* [getCharset](#the-getcharset-function)
|
||||||
* [setExtraInfos](#the-setextrainfos-function)
|
* [setExtraInfos](#the-setextrainfos-function)
|
||||||
* [getExtraInfos](#the-getextrainfos-function)
|
* [getExtraInfos](#the-getextrainfos-function)
|
||||||
|
* [getMimeType](#the-getmimetype-function)
|
||||||
|
|
||||||
Find a [template](#template) at the end of this file
|
Find a [template](#template) at the end of this file
|
||||||
|
|
||||||
@@ -84,6 +85,14 @@ The `getExtraInfos` function returns the information previously set via the [`se
|
|||||||
getExtraInfos(): array
|
getExtraInfos(): array
|
||||||
```
|
```
|
||||||
|
|
||||||
|
## The `getMimeType` function
|
||||||
|
|
||||||
|
The `getMimeType` function returns the expected [MIME type](https://en.wikipedia.org/wiki/Media_type#Common_examples) of the format's output.
|
||||||
|
|
||||||
|
```PHP
|
||||||
|
getMimeType(): string
|
||||||
|
```
|
||||||
|
|
||||||
# Template
|
# Template
|
||||||
|
|
||||||
This is a bare minimum template for a format:
|
This is a bare minimum template for a format:
|
||||||
|
Reference in New Issue
Block a user