Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Newer
Older
100644 93 lines (86 sloc) 3.279 kB
034e2b7 @jonhen ssi fixes to interoperate with vdirs, root appmod fix, add yaws_showa…
jonhen authored
1 -module(yaws_showarg).
2
3 -export([out/1]).
4
ca1c8b1 @karlsson Fixed a number of compiler warnings and html validation errors
karlsson authored
5 -include("../include/yaws_api.hrl").
034e2b7 @jonhen ssi fixes to interoperate with vdirs, root appmod fix, add yaws_showa…
jonhen authored
6
7 f(Fmt, Args) ->
8 io_lib:format(Fmt, Args).
9
10 out(ARG) ->
0be3c7e @klacke untabified all of yaws
authored
11 [
455578a @vinoski major trailing whitespace cleanup
vinoski authored
12 {html,
0be3c7e @klacke untabified all of yaws
authored
13 "<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Strict//EN\" \"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd\">
6e96a14 @klacke indendation cleanup
authored
14 <html>
0be3c7e @klacke untabified all of yaws
authored
15 <head>
16 <style type=\"text/css\">
17 table {border-collapse: collapse; }
18 td, th { border: 1px solid #000000; vertical-align: baseline; }
034e2b7 @jonhen ssi fixes to interoperate with vdirs, root appmod fix, add yaws_showa…
jonhen authored
19
0be3c7e @klacke untabified all of yaws
authored
20 </style>
21 </head>
22 "},
6e96a14 @klacke indendation cleanup
authored
23 {ehtml,
24 [
455578a @vinoski major trailing whitespace cleanup
vinoski authored
25 {body,[],
0be3c7e @klacke untabified all of yaws
authored
26 [
27 {h4,[], "ARG information"},
455578a @vinoski major trailing whitespace cleanup
vinoski authored
28 {table,[],
0be3c7e @klacke untabified all of yaws
authored
29 [
455578a @vinoski major trailing whitespace cleanup
vinoski authored
30 {thead,[],
0be3c7e @klacke untabified all of yaws
authored
31 [
455578a @vinoski major trailing whitespace cleanup
vinoski authored
32 {tr,[],
0be3c7e @klacke untabified all of yaws
authored
33 [
34 {th,[],"record field"},{th,[],"value"}
35 ]}
36 ]},
455578a @vinoski major trailing whitespace cleanup
vinoski authored
37 {tbody,[],
0be3c7e @klacke untabified all of yaws
authored
38 [
455578a @vinoski major trailing whitespace cleanup
vinoski authored
39 {tr,[],
0be3c7e @klacke untabified all of yaws
authored
40 [ {td,[],"clisock"},
41 {td,[],f("~p",[ARG#arg.clisock])} ]},
42 {tr,[], [ {td,[],"client_ip_port"},
43 {td,[],f("~p",[ARG#arg.client_ip_port])} ]},
44 {tr,[], [ {td,[],"headers"},
45 {td,[],f("(see below)",[])} ]},
46 {tr,[], [ {td,[],"req"},
47 {td,[],f("~p",[ARG#arg.req])} ]},
48 {tr,[], [ {td,[],"clidata"},
49 {td,[],f("~p",[ARG#arg.clidata])} ]},
50 {tr,[], [ {td,[],"server_path"},
51 {td,[],f("~p",[ARG#arg.server_path])} ]},
52 {tr,[], [ {td,[],"querydata"},
53 {td,[],f("~p",[ARG#arg.querydata])} ]},
54 {tr,[], [ {td,[],"appmoddata (deprecated)"},
55 {td,[],f("~p",[ARG#arg.appmoddata])} ]},
56 {tr,[], [ {td,[],"docroot"},
57 {td,[],f("~p",[ARG#arg.docroot])} ]},
455578a @vinoski major trailing whitespace cleanup
vinoski authored
58 {tr,[], [ {td,[],"docroot_mount"},
0be3c7e @klacke untabified all of yaws
authored
59 {td,[],f("~p",[ARG#arg.docroot_mount])} ]},
455578a @vinoski major trailing whitespace cleanup
vinoski authored
60 {tr,[], [ {td,[],"fullpath"},
0be3c7e @klacke untabified all of yaws
authored
61 {td,[],f("~p",[ARG#arg.fullpath])} ]},
455578a @vinoski major trailing whitespace cleanup
vinoski authored
62 {tr,[], [ {td,[],"cont"},
0be3c7e @klacke untabified all of yaws
authored
63 {td,[],f("~p",[ARG#arg.cont])} ]},
455578a @vinoski major trailing whitespace cleanup
vinoski authored
64 {tr,[], [ {td,[],"state"},
0be3c7e @klacke untabified all of yaws
authored
65 {td,[],f("~p",[ARG#arg.state])} ]},
455578a @vinoski major trailing whitespace cleanup
vinoski authored
66 {tr,[], [ {td,[],"pid"},
0be3c7e @klacke untabified all of yaws
authored
67 {td,[],f("~p",[ARG#arg.pid])} ]},
455578a @vinoski major trailing whitespace cleanup
vinoski authored
68 {tr,[], [ {td,[],"opaque"},
0be3c7e @klacke untabified all of yaws
authored
69 {td,[],yaws_api:htmlize(f("~p",[ARG#arg.opaque]))} ]},
455578a @vinoski major trailing whitespace cleanup
vinoski authored
70 {tr,[], [ {td,[],"appmod_prepath (deprecated)"},
0be3c7e @klacke untabified all of yaws
authored
71 {td,[],f("~p",[ARG#arg.appmod_prepath])} ]},
455578a @vinoski major trailing whitespace cleanup
vinoski authored
72 {tr,[], [ {td,[],"prepath"},
0be3c7e @klacke untabified all of yaws
authored
73 {td,[],f("~p",[ARG#arg.prepath])} ]},
455578a @vinoski major trailing whitespace cleanup
vinoski authored
74 {tr,[], [ {td,[],"pathinfo"},
0be3c7e @klacke untabified all of yaws
authored
75 {td,[],f("~p",[ARG#arg.pathinfo])} ]}
76 ]}
455578a @vinoski major trailing whitespace cleanup
vinoski authored
77 ]},
0be3c7e @klacke untabified all of yaws
authored
78 {h4,[], "headers"},
79 {pre,[], f("~p",[yaws_api:reformat_header(ARG#arg.headers)])},
80 {hr,[],[]},
81 {h4,[], "raw ARG"},
82 {pre,[], yaws_api:htmlize(f("~p", [ARG]))},
83 {hr,[],[]}
84 ]}
85 ]
86 },
87 {html,
88 "
034e2b7 @jonhen ssi fixes to interoperate with vdirs, root appmod fix, add yaws_showa…
jonhen authored
89 </html>
0be3c7e @klacke untabified all of yaws
authored
90 "}
91 ].
034e2b7 @jonhen ssi fixes to interoperate with vdirs, root appmod fix, add yaws_showa…
jonhen authored
92
Something went wrong with that request. Please try again.