| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -1074,7 +1074,7 @@ console.log(String(myMIME)); | |||
| 1074 | 1074 | // Prints: text/plain | |
| 1075 | 1075 | ``` | |
| 1076 | 1076 | ||
| 1077 | - #### `mime.type` | ||
| 1077 | + ### `mime.type` | ||
| 1078 | 1078 | ||
| 1079 | 1079 | * {string} | |
| 1080 | 1080 | ||
@@ -1106,7 +1106,7 @@ console.log(String(myMIME)); | |||
| 1106 | 1106 | // Prints: application/javascript | |
| 1107 | 1107 | ``` | |
| 1108 | 1108 | ||
| 1109 | - #### `mime.subtype` | ||
| 1109 | + ### `mime.subtype` | ||
| 1110 | 1110 | ||
| 1111 | 1111 | * {string} | |
| 1112 | 1112 | ||
@@ -1138,7 +1138,7 @@ console.log(String(myMIME)); | |||
| 1138 | 1138 | // Prints: text/javascript | |
| 1139 | 1139 | ``` | |
| 1140 | 1140 | ||
| 1141 | - #### `mime.essence` | ||
| 1141 | + ### `mime.essence` | ||
| 1142 | 1142 | ||
| 1143 | 1143 | * {string} | |
| 1144 | 1144 | ||
@@ -1171,15 +1171,15 @@ console.log(String(myMIME)); | |||
| 1171 | 1171 | // Prints: application/javascript;key=value | |
| 1172 | 1172 | ``` | |
| 1173 | 1173 | ||
| 1174 | - #### `mime.params` | ||
| 1174 | + ### `mime.params` | ||
| 1175 | 1175 | ||
| 1176 | 1176 | * {MIMEParams} | |
| 1177 | 1177 | ||
| 1178 | 1178 | Gets the [`MIMEParams`][] object representing the | |
| 1179 | 1179 | parameters of the MIME. This property is read-only. See | |
| 1180 | 1180 | [`MIMEParams`][] documentation for details. | |
| 1181 | 1181 | ||
| 1182 | - #### `mime.toString()` | ||
| 1182 | + ### `mime.toString()` | ||
| 1183 | 1183 | ||
| 1184 | 1184 | * Returns: {string} | |
| 1185 | 1185 | ||
@@ -1188,7 +1188,7 @@ The `toString()` method on the `MIMEType` object returns the serialized MIME. | |||
| 1188 | 1188 | Because of the need for standard compliance, this method does not allow users | |
| 1189 | 1189 | to customize the serialization process of the MIME. | |
| 1190 | 1190 | ||
| 1191 | - #### `mime.toJSON()` | ||
| 1191 | + ### `mime.toJSON()` | ||
| 1192 | 1192 | ||
| 1193 | 1193 | * Returns: {string} | |
| 1194 | 1194 | ||
@@ -1219,7 +1219,7 @@ console.log(JSON.stringify(myMIMES)); | |||
| 1219 | 1219 | // Prints: ["image/png", "image/gif"] | |
| 1220 | 1220 | ``` | |
| 1221 | 1221 | ||
| 1222 | - ### Class: `util.MIMEParams` | ||
| 1222 | + ## Class: `util.MIMEParams` | ||
| 1223 | 1223 | ||
| 1224 | 1224 | <!-- YAML | |
| 1225 | 1225 | added: v18.13.0 | |
@@ -1228,7 +1228,7 @@ added: v18.13.0 | |||
| 1228 | 1228 | The `MIMEParams` API provides read and write access to the parameters of a | |
| 1229 | 1229 | `MIMEType`. | |
| 1230 | 1230 | ||
| 1231 | - #### Constructor: `new MIMEParams()` | ||
| 1231 | + ### Constructor: `new MIMEParams()` | ||
| 1232 | 1232 | ||
| 1233 | 1233 | Creates a new `MIMEParams` object by with empty parameters | |
| 1234 | 1234 | ||
@@ -1244,21 +1244,21 @@ const { MIMEParams } = require('node:util'); | |||
| 1244 | 1244 | const myParams = new MIMEParams(); | |
| 1245 | 1245 | ``` | |
| 1246 | 1246 | ||
| 1247 | - #### `mimeParams.delete(name)` | ||
| 1247 | + ### `mimeParams.delete(name)` | ||
| 1248 | 1248 | ||
| 1249 | 1249 | * `name` {string} | |
| 1250 | 1250 | ||
| 1251 | 1251 | Remove all name-value pairs whose name is `name`. | |
| 1252 | 1252 | ||
| 1253 | - #### `mimeParams.entries()` | ||
| 1253 | + ### `mimeParams.entries()` | ||
| 1254 | 1254 | ||
| 1255 | 1255 | * Returns: {Iterator} | |
| 1256 | 1256 | ||
| 1257 | 1257 | Returns an iterator over each of the name-value pairs in the parameters. | |
| 1258 | 1258 | Each item of the iterator is a JavaScript `Array`. The first item of the array | |
| 1259 | 1259 | is the `name`, the second item of the array is the `value`. | |
| 1260 | 1260 | ||
| 1261 | - #### `mimeParams.get(name)` | ||
| 1261 | + ### `mimeParams.get(name)` | ||
| 1262 | 1262 | ||
| 1263 | 1263 | * `name` {string} | |
| 1264 | 1264 | * Returns: {string} or `null` if there is no name-value pair with the given | |
@@ -1267,14 +1267,14 @@ is the `name`, the second item of the array is the `value`. | |||
| 1267 | 1267 | Returns the value of the first name-value pair whose name is `name`. If there | |
| 1268 | 1268 | are no such pairs, `null` is returned. | |
| 1269 | 1269 | ||
| 1270 | - #### `mimeParams.has(name)` | ||
| 1270 | + ### `mimeParams.has(name)` | ||
| 1271 | 1271 | ||
| 1272 | 1272 | * `name` {string} | |
| 1273 | 1273 | * Returns: {boolean} | |
| 1274 | 1274 | ||
| 1275 | 1275 | Returns `true` if there is at least one name-value pair whose name is `name`. | |
| 1276 | 1276 | ||
| 1277 | - #### `mimeParams.keys()` | ||
| 1277 | + ### `mimeParams.keys()` | ||
| 1278 | 1278 | ||
| 1279 | 1279 | * Returns: {Iterator} | |
| 1280 | 1280 | ||
@@ -1304,7 +1304,7 @@ for (const name of params.keys()) { | |||
| 1304 | 1304 | // bar | |
| 1305 | 1305 | ``` | |
| 1306 | 1306 | ||
| 1307 | - #### `mimeParams.set(name, value)` | ||
| 1307 | + ### `mimeParams.set(name, value)` | ||
| 1308 | 1308 | ||
| 1309 | 1309 | * `name` {string} | |
| 1310 | 1310 | * `value` {string} | |
@@ -1333,13 +1333,13 @@ console.log(params.toString()); | |||
| 1333 | 1333 | // Prints: foo=def&bar=1&baz=xyz | |
| 1334 | 1334 | ``` | |
| 1335 | 1335 | ||
| 1336 | - #### `mimeParams.values()` | ||
| 1336 | + ### `mimeParams.values()` | ||
| 1337 | 1337 | ||
| 1338 | 1338 | * Returns: {Iterator} | |
| 1339 | 1339 | ||
| 1340 | 1340 | Returns an iterator over the values of each name-value pair. | |
| 1341 | 1341 | ||
| 1342 | - #### `mimeParams[@@iterator]()` | ||
| 1342 | + ### `mimeParams[@@iterator]()` | ||
| 1343 | 1343 | ||
| 1344 | 1344 | * Returns: {Iterator} | |
| 1345 | 1345 | ||
| Back | FazBrowse Home | New Git URL |
0 commit comments