@@ -1080,7 +1080,7 @@ console.log(String(myMIME));
1080
1080
// Prints: text/plain
1081
1081
```
1082
1082
1083
- #### ` mime.type `
1083
+ ### ` mime.type `
1084
1084
1085
1085
* {string}
1086
1086
@@ -1112,7 +1112,7 @@ console.log(String(myMIME));
1112
1112
// Prints: application/javascript
1113
1113
```
1114
1114
1115
- #### ` mime.subtype `
1115
+ ### ` mime.subtype `
1116
1116
1117
1117
* {string}
1118
1118
@@ -1144,7 +1144,7 @@ console.log(String(myMIME));
1144
1144
// Prints: text/javascript
1145
1145
```
1146
1146
1147
- #### ` mime.essence `
1147
+ ### ` mime.essence `
1148
1148
1149
1149
* {string}
1150
1150
@@ -1177,15 +1177,15 @@ console.log(String(myMIME));
1177
1177
// Prints: application/javascript;key=value
1178
1178
```
1179
1179
1180
- #### ` mime.params `
1180
+ ### ` mime.params `
1181
1181
1182
1182
* {MIMEParams}
1183
1183
1184
1184
Gets the [ ` MIMEParams ` ] [ ] object representing the
1185
1185
parameters of the MIME. This property is read-only. See
1186
1186
[ ` MIMEParams ` ] [ ] documentation for details.
1187
1187
1188
- #### ` mime.toString() `
1188
+ ### ` mime.toString() `
1189
1189
1190
1190
* Returns: {string}
1191
1191
@@ -1194,7 +1194,7 @@ The `toString()` method on the `MIMEType` object returns the serialized MIME.
1194
1194
Because of the need for standard compliance, this method does not allow users
1195
1195
to customize the serialization process of the MIME.
1196
1196
1197
- #### ` mime.toJSON() `
1197
+ ### ` mime.toJSON() `
1198
1198
1199
1199
* Returns: {string}
1200
1200
@@ -1225,7 +1225,7 @@ console.log(JSON.stringify(myMIMES));
1225
1225
// Prints: ["image/png", "image/gif"]
1226
1226
```
1227
1227
1228
- ### Class: ` util.MIMEParams `
1228
+ ## Class: ` util.MIMEParams `
1229
1229
1230
1230
<!-- YAML
1231
1231
added:
@@ -1236,7 +1236,7 @@ added:
1236
1236
The ` MIMEParams ` API provides read and write access to the parameters of a
1237
1237
` MIMEType ` .
1238
1238
1239
- #### Constructor: ` new MIMEParams() `
1239
+ ### Constructor: ` new MIMEParams() `
1240
1240
1241
1241
Creates a new ` MIMEParams ` object by with empty parameters
1242
1242
@@ -1252,21 +1252,21 @@ const { MIMEParams } = require('node:util');
1252
1252
const myParams = new MIMEParams ();
1253
1253
```
1254
1254
1255
- #### ` mimeParams.delete(name) `
1255
+ ### ` mimeParams.delete(name) `
1256
1256
1257
1257
* ` name ` {string}
1258
1258
1259
1259
Remove all name-value pairs whose name is ` name ` .
1260
1260
1261
- #### ` mimeParams.entries() `
1261
+ ### ` mimeParams.entries() `
1262
1262
1263
1263
* Returns: {Iterator}
1264
1264
1265
1265
Returns an iterator over each of the name-value pairs in the parameters.
1266
1266
Each item of the iterator is a JavaScript ` Array ` . The first item of the array
1267
1267
is the ` name ` , the second item of the array is the ` value ` .
1268
1268
1269
- #### ` mimeParams.get(name) `
1269
+ ### ` mimeParams.get(name) `
1270
1270
1271
1271
* ` name ` {string}
1272
1272
* Returns: {string} or ` null ` if there is no name-value pair with the given
@@ -1275,14 +1275,14 @@ is the `name`, the second item of the array is the `value`.
1275
1275
Returns the value of the first name-value pair whose name is ` name ` . If there
1276
1276
are no such pairs, ` null ` is returned.
1277
1277
1278
- #### ` mimeParams.has(name) `
1278
+ ### ` mimeParams.has(name) `
1279
1279
1280
1280
* ` name ` {string}
1281
1281
* Returns: {boolean}
1282
1282
1283
1283
Returns ` true ` if there is at least one name-value pair whose name is ` name ` .
1284
1284
1285
- #### ` mimeParams.keys() `
1285
+ ### ` mimeParams.keys() `
1286
1286
1287
1287
* Returns: {Iterator}
1288
1288
@@ -1312,7 +1312,7 @@ for (const name of params.keys()) {
1312
1312
// bar
1313
1313
```
1314
1314
1315
- #### ` mimeParams.set(name, value) `
1315
+ ### ` mimeParams.set(name, value) `
1316
1316
1317
1317
* ` name ` {string}
1318
1318
* ` value ` {string}
@@ -1341,13 +1341,13 @@ console.log(params.toString());
1341
1341
// Prints: foo=def&bar=1&baz=xyz
1342
1342
```
1343
1343
1344
- #### ` mimeParams.values() `
1344
+ ### ` mimeParams.values() `
1345
1345
1346
1346
* Returns: {Iterator}
1347
1347
1348
1348
Returns an iterator over the values of each name-value pair.
1349
1349
1350
- #### ` mimeParams[@@iterator]() `
1350
+ ### ` mimeParams[@@iterator]() `
1351
1351
1352
1352
* Returns: {Iterator}
1353
1353
0 commit comments