summaryrefslogtreecommitdiff
path: root/tests/lexers/http/example2.txt
diff options
context:
space:
mode:
authorGeorg Brandl <georg@python.org>2021-01-18 21:24:00 +0100
committerGeorg Brandl <georg@python.org>2021-01-18 22:08:36 +0100
commit2a3d3a7d5b9c60dedf6638d876161d9563faebcf (patch)
tree809c0b4a686db98f5954afa1944404cd9652c6b2 /tests/lexers/http/example2.txt
parentf0445be718da83541ea3401aad882f3937147263 (diff)
downloadpygments-git-examplefiles.tar.gz
Move test_examplefiles to new tests/lexers scheme.examplefiles
Diffstat (limited to 'tests/lexers/http/example2.txt')
-rw-r--r--tests/lexers/http/example2.txt111
1 files changed, 111 insertions, 0 deletions
diff --git a/tests/lexers/http/example2.txt b/tests/lexers/http/example2.txt
new file mode 100644
index 00000000..c41b582e
--- /dev/null
+++ b/tests/lexers/http/example2.txt
@@ -0,0 +1,111 @@
+---input---
+POST /demo/submit/ HTTP/1.1
+Host: pygments.org
+Connection: keep-alivk
+Cache-Control: max-age=0
+Origin: http://pygments.org
+User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_7_2)
+ AppleWebKit/535.7 (KHTML, like Gecko) Chrome/16.0.912.63 Safari/535.7
+Content-Type: application/x-www-form-urlencoded
+Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
+Referer: http://pygments.org/
+Accept-Encoding: gzip,deflate,sdch
+Accept-Language: en-US,en;q=0.8
+Accept-Charset: windows-949,utf-8;q=0.7,*;q=0.3
+
+name=test&lang=text&code=asdf&user=
+
+---tokens---
+'POST' Name.Function
+' ' Text
+'/demo/submit/' Name.Namespace
+' ' Text
+'HTTP' Keyword.Reserved
+'/' Operator
+'1.1' Literal.Number
+'\n' Text
+
+'Host' Name.Attribute
+'' Text
+':' Operator
+' ' Text
+'pygments.org' Literal
+'\n' Text
+
+'Connection' Name.Attribute
+'' Text
+':' Operator
+' ' Text
+'keep-alivk' Literal
+'\n' Text
+
+'Cache-Control' Name.Attribute
+'' Text
+':' Operator
+' ' Text
+'max-age=0' Literal
+'\n' Text
+
+'Origin' Name.Attribute
+'' Text
+':' Operator
+' ' Text
+'http://pygments.org' Literal
+'\n' Text
+
+'User-Agent' Name.Attribute
+'' Text
+':' Operator
+' ' Text
+'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_7_2)' Literal
+'\n' Text
+
+' ' Text
+'AppleWebKit/535.7 (KHTML, like Gecko) Chrome/16.0.912.63 Safari/535.7' Literal
+'\n' Text
+
+'Content-Type' Name.Attribute
+'' Text
+':' Operator
+' ' Text
+'application/x-www-form-urlencoded' Literal
+'\n' Text
+
+'Accept' Name.Attribute
+'' Text
+':' Operator
+' ' Text
+'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8' Literal
+'\n' Text
+
+'Referer' Name.Attribute
+'' Text
+':' Operator
+' ' Text
+'http://pygments.org/' Literal
+'\n' Text
+
+'Accept-Encoding' Name.Attribute
+'' Text
+':' Operator
+' ' Text
+'gzip,deflate,sdch' Literal
+'\n' Text
+
+'Accept-Language' Name.Attribute
+'' Text
+':' Operator
+' ' Text
+'en-US,en;q=0.8' Literal
+'\n' Text
+
+'Accept-Charset' Name.Attribute
+'' Text
+':' Operator
+' ' Text
+'windows-949,utf-8;q=0.7,*;q=0.3' Literal
+'\n' Text
+
+'\n' Text
+
+'name=test&lang=text&code=asdf&user=\n' Text