forked from TykTechnologies/tyk-operator
-
Notifications
You must be signed in to change notification settings - Fork 0
/
httpbin_global-headers.yaml
62 lines (61 loc) · 1.52 KB
/
httpbin_global-headers.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
apiVersion: tyk.tyk.io/v1alpha1
kind: ApiDefinition
metadata:
name: httpbin-global-headers
spec:
name: httpbin-global-headers
use_keyless: true
protocol: http
active: true
proxy:
target_url: http://httpbin.org
listen_path: /httpbin-global-headers
strip_listen_path: true
response_processors:
- name: header_injector
version_data:
default_version: Default
not_versioned: true
versions:
Default:
name: Default
use_extended_paths: true
paths:
black_list: []
ignored: []
white_list: []
global_headers:
foo-req: my-foo
bar-req: my-bar
global_headers_remove:
- hello
global_response_headers:
Foo: Bar
global_response_headers_remove:
- Server
#curl http://localhost:8081/httpbin-global-headers/get -H 'Hello: World' -i
# HTTP/1.1 200 OK
#Access-Control-Allow-Credentials: true
#Access-Control-Allow-Origin: *
#Content-Length: 345
#Content-Type: application/json
#Date: Wed, 23 Sep 2020 23:10:38 GMT
#Server: gunicorn/19.9.0
#X-Ratelimit-Limit: 0
#X-Ratelimit-Remaining: 0
#X-Ratelimit-Reset: 0
#
# {
# "args": {},
# "headers": {
# "Accept": "*/*",
# "Accept-Encoding": "gzip",
# "Bar-Req": "foo-req",
# "Foo-Req": "foo-req",
# "Host": "httpbin.org",
# "User-Agent": "curl/7.71.1",
# "X-Amzn-Trace-Id": "Root=1-5f6bd5ee-3ca86240b0df983661a40183"
# },
# "origin": "::1, 94.14.220.241",
# "url": "http://httpbin.org/get"
# }