kubernetes/vendor/go.etcd.io/etcd/server/v3/lease/leasehttp/http.go

var LeasePrefix

var LeaseInternalPrefix

var applyTimeout

var ErrLeaseHTTPTimeout

// NewHandler returns an http Handler for lease renewals
func NewHandler(l lease.Lessor, waitch func() <-chan struct{}

type leaseHandler

func (h *leaseHandler) ServeHTTP(w http.ResponseWriter, r *http.Request) {}

// RenewHTTP renews a lease at a given primary server.
// TODO: Batch request in future?
func RenewHTTP(ctx context.Context, id lease.LeaseID, url string, rt http.RoundTripper) (int64, error) {}

// TimeToLiveHTTP retrieves lease information of the given lease ID.
func TimeToLiveHTTP(ctx context.Context, id lease.LeaseID, keys bool, url string, rt http.RoundTripper) (*leasepb.LeaseInternalResponse, error) {}

func readResponse(resp *http.Response) (b []byte, err error) {}