64 lines
1.3 KiB
Plaintext
64 lines
1.3 KiB
Plaintext
<html>
|
|
<body>
|
|
<h1>Incoming request</h1>
|
|
<h2>Headers</h2>
|
|
<table style="width: 100%">
|
|
<thead>
|
|
<tr>
|
|
<th>Key</th>
|
|
<th>Value</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
{{ range $key, $val := .Request.Header }}
|
|
<tr>
|
|
<td>
|
|
<b>{{ $key }}</b>
|
|
</td>
|
|
<td>
|
|
<code>{{ $val }}</code>
|
|
</td>
|
|
</tr>
|
|
{{
|
|
end
|
|
}}
|
|
</tbody>
|
|
</table>
|
|
<h2>Cookies</h2>
|
|
<table style="width: 100%">
|
|
<thead>
|
|
<tr>
|
|
<th>Name</th>
|
|
<th>Domain</th>
|
|
<th>Path</th>
|
|
<th>Secure</th>
|
|
<th>MaxAge</th>
|
|
<th>HttpOnly</th>
|
|
<th>Expires</th>
|
|
<th>Value</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
{{ range $cookie := .Request.Cookies }}
|
|
<tr>
|
|
<td>
|
|
<b>{{ $cookie.Name }}</b>
|
|
</td>
|
|
<td>{{ $cookie.Domain }}</td>
|
|
<td>{{ $cookie.Path }}</td>
|
|
<td>{{ $cookie.Secure }}</td>
|
|
<td>{{ $cookie.MaxAge }}</td>
|
|
<td>{{ $cookie.HttpOnly }}</td>
|
|
<td>{{ $cookie.Expires }}</td>
|
|
<td>
|
|
<code>{{ $cookie.Value }}</code>
|
|
</td>
|
|
</tr>
|
|
{{
|
|
end
|
|
}}
|
|
</tbody>
|
|
</table>
|
|
</body>
|
|
</html>
|