v0.1.2

Response Display

Last updated


This page explains how a regular (non-streaming) HTTP response is shown in the info pane and hint bar.

Layout


  1. 200 OK
  2. Headers:
  3. Content-Type: application/json; charset=utf-8
  4. Duration: 245.123ms
  5. Body:
  6. {
  7. "login": "pardnchiu"
  8. }

SectionContent
Status lineresp.Status (e.g. 200 OK), colored by status code
Headers:One line per response header; multi-value headers span multiple lines; order is not stable
Duration:Time from sending to finishing the body read
Body:Response body, pretty-printed when it parses as JSON

Status Colors


StatusColorApplied to
< 300GreenStatus line, hint bar status code
300–399YellowSame
≥ 400RedSame, and the whole body is red

JSON Formatting


When the body parses with json.Unmarshal, it is re-indented with two spaces; otherwise (HTML, plain text, empty body) it is shown as-is. Formatting affects display only, never the data sent or received.

Hint Bar


On completion the hint bar shows (status) METHOD URL | duration, for example:
  1. (200) GET https://api.github.com/users/pardnchiu | 245.123ms

See Request Errors for what is shown when a request fails.
中文