-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtest.http
More file actions
73 lines (47 loc) · 1.4 KB
/
Copy pathtest.http
File metadata and controls
73 lines (47 loc) · 1.4 KB
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
63
64
65
66
67
68
69
70
71
72
73
### Index redirects
GET http://localhost:8080/
### Robots.txt
GET http://localhost:8080/robots.txt
### Metrics
GET http://localhost:8080/metrics
### Healthcheck
GET http://localhost:8080/healthz
### Mobile config
GET http://localhost:8080/.mobileconfig
### Reload blocklist
POST http://admin.localhost:8080/api/blocklist/reload
User-Agent: test-client
### Check blocklist (JSON)
POST http://admin.localhost:8080/api/blocklist/check
Content-Type: application/json
["google.com", "www.ex.co", "ads.net"]
### Check blocklist (Plain text)
POST http://admin.localhost:8080/api/blocklist/check
Content-Type: text/plain
google.com
www.ex.co
ads.net
### ASN Lookup
GET http://admin.localhost:8080/api/asn/24.123.12.0
### DoH POST
POST http://localhost:8080/dns-query
Content-Type: application/dns-message
Accept: application/dns-message
< ./docs/query.bin
### DoH GET
GET http://localhost:8080/dns-query?dns=AAABAAABAAAAAAAAA3d3dwdleGFtcGxlA2NvbQAAAQAB
Accept: application/dns-message
### Admin UI
GET http://admin.localhost:8080/
Accept: text/html
### Who Am I
GET http://admin.localhost:8080/api/whoami
Accept: application/json
### CORS preflight
OPTIONS http://admin.localhost:8080/api/whoami
Origin: http://example.com
Access-Control-Request-Method: GET
Access-Control-Request-Headers: Authorization, Content-Type
### DNS Events Stream (SSE)
GET http://admin.localhost:8080/api/events
Accept: text/event-stream