123456789101112131415161718192021222324252627282930313233 |
- {{ define "body" }}
- <h6>
- {{ with len .BodyBytes }} {{ . }} bytes, {{ end }}
- {{ with .Header.Get "Content-Type" }}{{.}}{{end}}
- </h6>
- {{ with $json := handleJson .BodyBytes .Header }}
- <pre><code class="json">{{ $json.Str }}</code></pre>
- {{ with $json.Err }}
- <div class="alert">{{ $json.Err }}</div>
- {{ end }}
- {{ end }}
- {{ with $form := handleForm .BodyBytes .Header }}
- <h6>Form Params</h6>
- <table class="table params">
- {{ range $key, $values := $form }}
- {{ range $value := $values }}
- <tr>
- <th>{{ $key }}</th>
- <td>{{ $value }}</td>
- </tr>
- {{ end }}
- {{ end }}
- </table>
- {{ end }}
- {{ with handleOther .BodyBytes .Header }}
- <pre><code class="{{.Syntax}}">{{.Body}}</code></pre>
- {{ end }}
- {{ end }}
|