Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 4 of 4 for wroteRequest (0.13 sec)

  1. src/net/http/httptrace/trace.go

    	// server before writing the request body.
    	Wait100Continue func()
    
    	// WroteRequest is called with the result of writing the
    	// request and any body. It may be called multiple times
    	// in the case of retried requests.
    	WroteRequest func(WroteRequestInfo)
    }
    
    // WroteRequestInfo contains information provided to the WroteRequest
    // hook.
    type WroteRequestInfo struct {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Jan 10 03:29:50 UTC 2024
    - 8.1K bytes
    - Viewed (0)
  2. src/net/rpc/client.go

    	shutdown bool // server has told us to stop
    }
    
    // A ClientCodec implements writing of RPC requests and
    // reading of RPC responses for the client side of an RPC session.
    // The client calls [ClientCodec.WriteRequest] to write a request to the connection
    // and calls [ClientCodec.ReadResponseHeader] and [ClientCodec.ReadResponseBody] in pairs
    // to read responses. The client calls [ClientCodec.Close] when finished with the
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Jan 10 03:29:50 UTC 2024
    - 9K bytes
    - Viewed (0)
  3. src/net/rpc/client_test.go

    package rpc
    
    import (
    	"errors"
    	"fmt"
    	"net"
    	"strings"
    	"testing"
    )
    
    type shutdownCodec struct {
    	responded chan int
    	closed    bool
    }
    
    func (c *shutdownCodec) WriteRequest(*Request, any) error { return nil }
    func (c *shutdownCodec) ReadResponseBody(any) error       { return nil }
    func (c *shutdownCodec) ReadResponseHeader(*Response) error {
    	c.responded <- 1
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Dec 13 18:45:54 UTC 2021
    - 1.7K bytes
    - Viewed (0)
  4. src/net/rpc/jsonrpc/client.go

    		pending: make(map[uint64]string),
    	}
    }
    
    type clientRequest struct {
    	Method string `json:"method"`
    	Params [1]any `json:"params"`
    	Id     uint64 `json:"id"`
    }
    
    func (c *clientCodec) WriteRequest(r *rpc.Request, param any) error {
    	c.mutex.Lock()
    	c.pending[r.Seq] = r.ServiceMethod
    	c.mutex.Unlock()
    	c.req.Method = r.ServiceMethod
    	c.req.Params[0] = param
    	c.req.Id = r.Seq
    	return c.enc.Encode(&c.req)
    }
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Jan 10 03:29:50 UTC 2024
    - 3K bytes
    - Viewed (0)
Back to top