Lines Matching refs:response
107 // It will return as soon as the notification has been sent, as no response is
137 // Call sends a request over the connection and then waits for a response.
138 // If the response is not an error, it will be decoded into result.
161 // are racing the response
167 // clean up the pending response handler on the way out
181 // sending failed, we will never get a response, so don't leave it pending
184 // now wait for the response
186 case response := <-rchan:
188 ctx = h.Response(ctx, c, Receive, response)
190 // is it an error response?
191 if response.Error != nil {
192 return response.Error
194 if result == nil || response.Result == nil {
197 if err := json.Unmarshal(*response.Result, result); err != nil {
259 response := &WireResponse{
265 response.Error = callErr
267 response.Error = NewErrorf(0, "%s", err)
270 data, err := json.Marshal(response)
275 ctx = h.Response(ctx, r.conn, Send, response)
386 // we have a response, get the pending entry from the map
394 response := &WireResponse{
399 rchan <- response
403 h.Error(runCtx, fmt.Errorf("message not a call, notify or response, ignoring"))