Linux v69820.1blu.de 4.15.0 #1 SMP Mon Sep 30 15:36:27 MSK 2024 x86_64
Apache/2.4.58
Server IP : 195.90.215.149 & Your IP : 216.73.216.250
Domains :
Cant Read [ /etc/named.conf ]
User : www-data
Terminal
Auto Root
Create File
Create Folder
Localroot Suggester
Backdoor Destroyer
Readme
/
usr /
share /
doc /
node-undici /
api /
Delete
Unzip
Name
Size
Permission
Date
Action
Agent.md
2.73
KB
-rw-r--r--
2023-10-11 19:12
BalancedPool.md
2.75
KB
-rw-r--r--
2023-10-11 19:12
CacheStorage.md
1.05
KB
-rw-r--r--
2023-10-11 19:12
Client.md.gz
3.4
KB
-rw-r--r--
2023-10-11 19:12
Connector.md
3.38
KB
-rw-r--r--
2023-10-11 19:12
ContentType.md
1.1
KB
-rw-r--r--
2023-10-11 19:12
Cookies.md
2
KB
-rw-r--r--
2023-10-11 19:12
DiagnosticsChannel.md.gz
1.38
KB
-rw-r--r--
2023-10-11 19:12
DispatchInterceptor.md
1.49
KB
-rw-r--r--
2023-10-11 19:12
Dispatcher.md.gz
6.55
KB
-rw-r--r--
2023-10-11 19:12
Errors.md
3.48
KB
-rw-r--r--
2023-10-11 19:12
Fetch.md
1.17
KB
-rw-r--r--
2023-10-11 19:12
MockAgent.md.gz
2.97
KB
-rw-r--r--
2023-10-11 19:12
MockClient.md
1.97
KB
-rw-r--r--
2023-10-11 19:12
MockErrors.md
595
B
-rw-r--r--
2023-10-11 19:12
MockPool.md.gz
2.95
KB
-rw-r--r--
2023-10-11 19:12
Pool.md
2.7
KB
-rw-r--r--
2023-10-11 19:12
PoolStats.md
775
B
-rw-r--r--
2023-10-11 19:12
ProxyAgent.md
3.72
KB
-rw-r--r--
2023-10-11 19:12
WebSocket.md
1.46
KB
-rw-r--r--
2023-10-11 19:12
api-lifecycle.md.gz
2.62
KB
-rw-r--r--
2023-10-11 19:12
Save
Rename
# MIME Type Parsing ## `MIMEType` interface * **type** `string` * **subtype** `string` * **parameters** `Map<string, string>` * **essence** `string` ## `parseMIMEType(input)` Implements [parse a MIME type](https://mimesniff.spec.whatwg.org/#parse-a-mime-type). Parses a MIME type, returning its type, subtype, and any associated parameters. If the parser can't parse an input it returns the string literal `'failure'`. ```js import { parseMIMEType } from 'undici' parseMIMEType('text/html; charset=gbk') // { // type: 'text', // subtype: 'html', // parameters: Map(1) { 'charset' => 'gbk' }, // essence: 'text/html' // } ``` Arguments: * **input** `string` Returns: `MIMEType|'failure'` ## `serializeAMimeType(input)` Implements [serialize a MIME type](https://mimesniff.spec.whatwg.org/#serialize-a-mime-type). Serializes a MIMEType object. ```js import { serializeAMimeType } from 'undici' serializeAMimeType({ type: 'text', subtype: 'html', parameters: new Map([['charset', 'gbk']]), essence: 'text/html' }) // text/html;charset=gbk ``` Arguments: * **mimeType** `MIMEType` Returns: `string`