Skip to content

Commit

Permalink
docs for response override
Browse files Browse the repository at this point in the history
Signed-off-by: Huabing Zhao <[email protected]>
  • Loading branch information
zhaohuabing committed Nov 7, 2024
1 parent a4a6829 commit 6fb9507
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 164 deletions.
157 changes: 0 additions & 157 deletions site/content/en/latest/tasks/traffic/direct-response copy.md

This file was deleted.

14 changes: 7 additions & 7 deletions site/content/en/latest/tasks/traffic/direct-response.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ This task shows you how to configure them.
Follow the steps from the [Quickstart](../../quickstart) to install Envoy Gateway and the example manifest.
Before proceeding, you should be able to query the example backend using HTTP.

## Testing Direct Response
## Testing Direct Response

{{< tabpane text=true >}}
{{% tab header="Apply from stdin" %}}
Expand All @@ -26,7 +26,7 @@ spec:
parentRefs:
- name: eg
hostnames:
- "www.example.com"
- "www.example.com"
rules:
- matches:
- path:
Expand Down Expand Up @@ -99,7 +99,7 @@ spec:
parentRefs:
- name: eg
hostnames:
- "www.example.com"
- "www.example.com"
rules:
- matches:
- path:
Expand Down Expand Up @@ -171,12 +171,12 @@ curl --verbose --header "Host: www.example.com" http://$GATEWAY_HOST/inline
> Host: www.example.com
> User-Agent: curl/8.4.0
> Accept: */*
>
>
< HTTP/1.1 503 Service Unavailable
< content-type: text/plain
< content-length: 32
< date: Sat, 02 Nov 2024 00:35:48 GMT
<
<
* Connection #0 to host 127.0.0.1 left intact
Oops! Your request is not found.
```
Expand All @@ -192,12 +192,12 @@ curl --verbose --header "Host: www.example.com" http://$GATEWAY_HOST/value-ref
> Host: www.example.com
> User-Agent: curl/8.4.0
> Accept: */*
>
>
< HTTP/1.1 500 Internal Server Error
< content-type: application/json
< content-length: 34
< date: Sat, 02 Nov 2024 00:35:55 GMT
<
<
* Connection #0 to host 127.0.0.1 left intact
{"error": "Internal Server Error"}
```

0 comments on commit 6fb9507

Please sign in to comment.