Merge pull request #6 from lukaszbudnik/better-curl-example
added better curl example
This commit is contained in:
14
README.md
14
README.md
@@ -52,19 +52,19 @@ minikube start
|
|||||||
kubectl apply -f test/deployment.yaml
|
kubectl apply -f test/deployment.yaml
|
||||||
# tunnel to it and copy the URL as $URL variable
|
# tunnel to it and copy the URL as $URL variable
|
||||||
minikube service --url camarero
|
minikube service --url camarero
|
||||||
# call it a few times
|
# simulate some HTTP requests
|
||||||
curl $URL
|
curl -H "Host: gateway.myapp.com" $URL/camarero/abc
|
||||||
curl $URL
|
curl -H "Host: gateway.myapp.com" $URL/camarero/abc
|
||||||
curl $URL
|
curl -H "Host: gateway.myapp.com" $URL/camarero/abc
|
||||||
curl $URL
|
curl -H "Host: gateway.myapp.com" $URL/camarero/abc
|
||||||
```
|
```
|
||||||
|
|
||||||
A sample response looks like this:
|
A sample response looks like this:
|
||||||
|
|
||||||
```json
|
```json
|
||||||
{
|
{
|
||||||
"host": "127.0.0.1:53366",
|
"host": "gateway.myapp.com",
|
||||||
"requestUri": "/",
|
"requestUri": "/camarero/abc",
|
||||||
"remoteAddr": "172.17.0.1",
|
"remoteAddr": "172.17.0.1",
|
||||||
"counter": 4,
|
"counter": 4,
|
||||||
"headers": {
|
"headers": {
|
||||||
|
|||||||
Reference in New Issue
Block a user