Interface: FetchedDocument
Defined in: packages/federation-verify/src/fetcher.ts:57
A document as it came off the wire, before anything is believed about it.
Properties
body
readonlybody:string
Defined in: packages/federation-verify/src/fetcher.ts:62
The body decoded as UTF-8, for the documents that are read as text (JWTs).
bytes?
readonlyoptionalbytes?:Uint8Array<ArrayBufferLike>
Defined in: packages/federation-verify/src/fetcher.ts:69
The body exactly as it arrived, which is what a digest is taken over. The network adapters always fill it. A fetcher that only has text (a fake, a cache of strings) may leave it out, and the body's UTF-8 encoding stands in for it, which is exact for any text that did not come from bytes in the first place.
contentType
readonlycontentType:string
Defined in: packages/federation-verify/src/fetcher.ts:60
The Content-Type header, or the empty string when there was none.
status
readonlystatus:number
Defined in: packages/federation-verify/src/fetcher.ts:58