Repository navigation
Amend override long description - #253
Conversation
| - Any HTTP or gRPC request to your sandbox is first routed to your local service. | ||
| - Your local service processes the request and replies. | ||
| - By default: | ||
| * If your local service's response contains the header 'sd-override: true' (for HTTP), or the metadata 'sd-override: true' (for gRPC), the response from your local service is immediately sent back to the client—the request does NOT reach the original sandbox workload. |
There was a problem hiding this comment.
or the metadata 'sd-override: true' (for gRPC)
I have not tested this. Looked at the implementation, and it looks like it would likely work, but it would go through several implicit coding steps under the hood: gRPC metadata -> http2 headers -> plain Go http headers (using http2 transport on top of http).
I think @daniel-de-vera tested this?
There was a problem hiding this comment.
I removed the reference to metadata, @daniel-de-vera tells me it's untested and we can leave it as "set a response header" instead for both HTTP and gRPC.
| Long: `The 'override' command lets you intercept both HTTP and gRPC traffic coming into your sandbox and process it with a local service you specify (such as on your laptop). | ||
|
|
||
| How it works: | ||
| - Any HTTP or gRPC request to your sandbox is first routed to your local service. |
There was a problem hiding this comment.
maybe Any HTTP request (including gRPC)? as gRPC is on http2?
scott-cotton
left a comment
There was a problem hiding this comment.
LGTM, supposing the grpc case has been tested.
Same content, just organized it a bit for easier comprehension.