Massive cleanups on http frontend aspects
This commit is contained in:
30
resources/templates/env.html
Normal file
30
resources/templates/env.html
Normal file
@@ -0,0 +1,30 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<style>
|
||||
pre { margin: 0 1ex; }
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<h1>Request to:</h1>
|
||||
<pre>{{ .ReqURL }}</pre>
|
||||
<h1>Headers</h1>
|
||||
<table>
|
||||
{{- range k,v := .Headers }}
|
||||
<tr>
|
||||
<td><pre>{{ k }}</pre></td>
|
||||
<td><pre>{{ v }}</pre></td>
|
||||
</tr>
|
||||
{{- end }}
|
||||
</table>
|
||||
<h1>Process Environment</h1>
|
||||
<table>
|
||||
{{- range k,v := .ProcessEnv }}
|
||||
<tr>
|
||||
<td><pre>{{ k }}</pre></td>
|
||||
<td><pre>{{ v }}</pre></td>
|
||||
</tr>
|
||||
{{- end }}
|
||||
</table>
|
||||
</body>
|
||||
</html>
|
||||
Reference in New Issue
Block a user