(
url: string,
status: number,
headers: Headers,
payload: Uint8Array | string
)
| 55 | } |
| 56 | |
| 57 | addExchange( |
| 58 | url: string, |
| 59 | status: number, |
| 60 | headers: Headers, |
| 61 | payload: Uint8Array | string |
| 62 | ): BundleBuilder { |
| 63 | validateExchangeURL(url); |
| 64 | if (typeof payload === 'string') { |
| 65 | payload = byteString(payload); |
| 66 | } |
| 67 | this.addIndexEntry( |
| 68 | url, |
| 69 | this.addResponse(new HeaderMap(status, headers), payload) |
| 70 | ); |
| 71 | return this; |
| 72 | } |
| 73 | |
| 74 | setPrimaryURL(url: string): BundleBuilder { |
| 75 | return this.compatAdapter.setPrimaryURL(url); |
no test coverage detected