Skip to content

feat(fetch): expose securityDetails() and serverAddr() on APIResponse#40932

Open
dgozman wants to merge 1 commit into
microsoft:mainfrom
dgozman:fix-40905
Open

feat(fetch): expose securityDetails() and serverAddr() on APIResponse#40932
dgozman wants to merge 1 commit into
microsoft:mainfrom
dgozman:fix-40905

Conversation

@dgozman
Copy link
Copy Markdown
Collaborator

@dgozman dgozman commented May 20, 2026

Summary

  • Add APIResponse.securityDetails() and APIResponse.serverAddr(), mirroring the browser-side Response API.
  • TLS info and remote socket address are captured from the existing secureConnect/socket listeners in fetch.ts — no extra TLS handshake or socket needed.
  • For redirected requests, returns the values for the final hop.

Fixes #40905

@github-actions
Copy link
Copy Markdown
Contributor

Test results for "tests 1"

2 flaky ⚠️ [chromium-library] › library/video.spec.ts:719 › screencast › should work with video+trace `@chromium-ubuntu-22.04-arm-node20`
⚠️ [webkit-library] › library/browsertype-connect.spec.ts:792 › run-server › should upload a folder `@webkit-ubuntu-22.04-node20`

42052 passed, 850 skipped


Merge workflow run.

@github-actions
Copy link
Copy Markdown
Contributor

Test results for "MCP"

7181 passed, 1113 skipped


Merge workflow run.


## async method: APIResponse.securityDetails
* since: v1.61
- returns: <[null]|[Object]>
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

let's move the definition to params.md and share it with Response.securityDetails


## async method: APIResponse.serverAddr
* since: v1.61
- returns: <[null]|[Object]>
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ditto

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Feature]: Expose securityDetails() on APIResponse for HTTPS monitoring use cases

2 participants