buf: github.com/bufbuild/buf/internal/pkg/httputil Index | Files

package httputil

import "github.com/bufbuild/buf/internal/pkg/httputil"


Package Files


func GetResponseBody Uses

func GetResponseBody(client Client, request *http.Request) (_ []byte, retErr error)

GetResponseBody reads and closes the response body.

type Client Uses

type Client interface {
    // Do matches http.Client.
    Do(request *http.Request) (*http.Response, error)

Client is a client.

Package httputil imports 4 packages (graph). Updated 2020-10-20. Refresh now. Tools for package owners.