forked from PrismJS/prism
/
issue2733.test
113 lines (90 loc) · 2.31 KB
/
issue2733.test
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
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
HTTP/1.1 200 OK
connection: keep-alive
content-type: application/json
date: Sat, 23 Jan 2021 20:36:14 GMT
keep-alive: timeout=60
transfer-encoding: chunked
{
"id": 1,
"name": "John Doe",
"userName": "jdoe",
"email": "whatever@something.zzz",
"phone": "1234567890",
"birthDate": "1878-05-06",
"address": {
"street": "Fake St",
"street2": "Apt. 556",
"city": "Gwenborough",
"state": "ZZ",
"zip": "12345"
}
}
----------------------------------------------------
[
["response-status", [
["http-version", "HTTP/1.1"],
["status-code", "200"],
["reason-phrase", "OK"]
]],
["header-name", "connection:"],
" keep-alive\r\n",
["header-name", "content-type:"],
" application/json\r\n",
["header-name", "date:"],
" Sat, 23 Jan 2021 20:36:14 GMT\r\n",
["header-name", "keep-alive:"],
" timeout=60\r\n",
["header-name", "transfer-encoding:"],
" chunked\r\n",
["application-json", [
["punctuation", "{"],
["property", "\"id\""],
["operator", ":"],
["number", "1"],
["punctuation", ","],
["property", "\"name\""],
["operator", ":"],
["string", "\"John Doe\""],
["punctuation", ","],
["property", "\"userName\""],
["operator", ":"],
["string", "\"jdoe\""],
["punctuation", ","],
["property", "\"email\""],
["operator", ":"],
["string", "\"whatever@something.zzz\""],
["punctuation", ","],
["property", "\"phone\""],
["operator", ":"],
["string", "\"1234567890\""],
["punctuation", ","],
["property", "\"birthDate\""],
["operator", ":"],
["string", "\"1878-05-06\""],
["punctuation", ","],
["property", "\"address\""],
["operator", ":"],
["punctuation", "{"],
["property", "\"street\""],
["operator", ":"],
["string", "\"Fake St\""],
["punctuation", ","],
["property", "\"street2\""],
["operator", ":"],
["string", "\"Apt. 556\""],
["punctuation", ","],
["property", "\"city\""],
["operator", ":"],
["string", "\"Gwenborough\""],
["punctuation", ","],
["property", "\"state\""],
["operator", ":"],
["string", "\"ZZ\""],
["punctuation", ","],
["property", "\"zip\""],
["operator", ":"],
["string", "\"12345\""],
["punctuation", "}"],
["punctuation", "}"]
]]
]