code: func (c *Client) dumpRequest(ctx context.Context, req *http.Request) {
  	reqBody, err := dumpReqBody(req)
  	if err != nil {
  		goa.LogError(ctx, "Failed to load request body for dump", "err", err.Error())
  	}
  	goa.LogInfo(ctx, "request headers", headersToSlice(req.Header)...)
  	if reqBody != nil {
  		goa.LogInfo(ctx, "request", "body", string(reqBody))
  	}
  }
docs: // Dump request if needed.