Summary of captured responses (URL, status, size).
()
| 75 | |
| 76 | /** Summary of captured responses (URL, status, size). */ |
| 77 | summary(): string { |
| 78 | if (this.entries.length === 0) return 'No captured responses.'; |
| 79 | const lines = this.entries.map((e, i) => |
| 80 | ` [${i + 1}] ${e.status} ${e.url.slice(0, 100)} (${Math.round(e.size / 1024)}KB${e.bodyTruncated ? ', truncated' : ''})` |
| 81 | ); |
| 82 | return `${this.entries.length} responses (${Math.round(this.totalSize / 1024)}KB total):\n${lines.join('\n')}`; |
| 83 | } |
| 84 | } |
| 85 | |
| 86 | /** Global capture state. */ |
no outgoing calls
no test coverage detected