// Send sends call to Cockroach via an HTTP post. HTTP response codes // which are retryable are retried with backoff in a loop using the // default retry options. func (s *httpSender) Send(args Request) (Response, error) { // Prepare the args. if args.GetUser() == "" { args.User = s.ctx.Context.User } reply := Response{} return reply, client.HTTPPost(s.ctx, &args, &reply, args.Method()) }
// Send sends call to Cockroach via an HTTP post. HTTP response codes // which are retryable are retried with backoff in a loop using the // default retry options. func (s *httpSender) Send(_ context.Context, call sqlwire.Call) { if err := client.HTTPPost(s.ctx, call.Args, call.Reply, call.Args.Method()); err != nil { call.Reply.Header().SetGoError(err) } }