Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions docs-site/src/content/docs/reference/proxy-formats.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,14 @@ should select among several targets.

Credential-bearing model, image, video, and search requests do not automatically follow HTTP redirects, including same-origin redirects. Configure the final upstream API URL instead of a redirecting alias. A redirect does not cause the server to resend credentials or the request body to its destination. The response owner retains its existing error or relay behavior; native Responses and compact routes can return the original 3xx and `Location` to the client. Client redirect behavior is separate from this server transport policy.

## Live sideband connection failures

The proxy completes the upstream live sideband handshake before accepting the client
WebSocket. An upstream rejection fails the upgrade with 502; a ten-second handshake timeout
returns 504, and client cancellation returns 499. Bun does not expose the exact upstream handshake status, so an upstream 404/410
cannot currently be forwarded precisely. A successful connection preserves the initial session
frames in order. This handshake policy is separate from the Responses WebSocket transport.

## Endpoint overview

| Client surface | Endpoint | Successful non-stream result | Successful stream or socket result |
Expand Down
Loading
Loading