Function
URLSerializer
(url2, excludeFragment = false)
Source from the content-addressed store, hash-verified
| 51494 | mimeType = "text/plain" + mimeType; |
| 51495 | } |
| 51496 | let mimeTypeRecord = parseMIMEType(mimeType); |
| 51497 | if (mimeTypeRecord === "failure") { |
| 51498 | mimeTypeRecord = parseMIMEType("text/plain;charset=US-ASCII"); |
| 51499 | } |
| 51500 | return { mimeType: mimeTypeRecord, body }; |
| 51501 | } |
| 51502 | function URLSerializer(url2, excludeFragment = false) { |
| 51503 | if (!excludeFragment) { |
| 51504 | return url2.href; |
| 51505 | } |
| 51506 | const href = url2.href; |
Tested by
no test coverage detected
Used in the wild real call sites across dependent graphs
searching dependent graphs…