Skip to content

Instantly share code, notes, and snippets.

@c9s
Created January 2, 2022 14:20
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save c9s/30c3fc774beb0ec0000036beaac49e92 to your computer and use it in GitHub Desktop.
Save c9s/30c3fc774beb0ec0000036beaac49e92 to your computer and use it in GitHub Desktop.
package requestgen
import (
"context"
"net/http"
"net/url"
)
type AuthenticatedRequestBuilder interface {
// NewAuthenticatedRequest builds up the http request for authentication-required endpoints
NewAuthenticatedRequest(ctx context.Context, method, refURL string, params url.Values, payload interface{}) (*http.Request, error)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment