code: func (h *Handler) readQueryRequest(r *http.Request) (*pilosa.QueryRequest, error) {
  	switch r.Header.Get("Content-Type") {
  	case "application/x-protobuf":
  		return h.readProtobufQueryRequest(r)
  	default:
  		return h.readURLQueryRequest(r)
  	}
  }
docs: // readQueryRequest parses an query parameters from r.