Versions in this module Expand all Collapse all v4 v4.14.1 Apr 26, 2023 Changes in this version + func AuthFieldSpecs() []*service.ConfigField + func AuthFieldSpecsExpanded() []*service.ConfigField + func BasicAuthField() *service.ConfigField + func ConfigField(defaultVerb string, forOutput bool, extraChildren ...*service.ConfigField) *service.ConfigField + func OldFieldSpec(defaultVerb string, forOutput bool, extraChildren ...docs.FieldSpec) docs.FieldSpec + type AuthConfig struct + BasicAuth BasicAuthConfig + JWT JWTConfig + OAuth OAuthConfig + func NewAuthConfig() AuthConfig + func (c AuthConfig) Sign(f ifs.FS, req *http.Request) error + type BasicAuthConfig struct + Enabled bool + Password string + Username string + func NewBasicAuthConfig() BasicAuthConfig + func (basic BasicAuthConfig) Sign(req *http.Request) error + type Client struct + func NewClientFromOldConfig(conf OldConfig, mgr bundle.NewManagement, opts ...RequestOpt) (*Client, error) + func (h *Client) Close(ctx context.Context) error + func (h *Client) ResponseToBatch(res *http.Response) (message.Batch, error) + func (h *Client) Send(ctx context.Context, sendMsg message.Batch) (message.Batch, error) + func (h *Client) SendToResponse(ctx context.Context, sendMsg message.Batch) (res *http.Response, err error) + type JWTConfig struct + Claims jwt.MapClaims + Enabled bool + Headers map[string]any + PrivateKeyFile string + SigningMethod string + func NewJWTConfig() JWTConfig + func (j JWTConfig) Sign(f ifs.FS, req *http.Request) error + type MultipartExpressions struct + Body *field.Expression + ContentDisposition *field.Expression + ContentType *field.Expression + type OAuth2Config struct + ClientKey string + ClientSecret string + Enabled bool + Scopes []string + TokenURL string + func NewOAuth2Config() OAuth2Config + func (oauth OAuth2Config) Client(ctx context.Context) *http.Client + type OAuthConfig struct + AccessToken string + AccessTokenSecret string + ConsumerKey string + ConsumerSecret string + Enabled bool + func NewOAuthConfig() OAuthConfig + func (oauth OAuthConfig) Sign(req *http.Request) error + type OldConfig struct + BackoffOn []int + DropOn []int + DumpRequestLogLevel string + ExtractMetadata metadata.IncludeFilterConfig + Headers map[string]string + MaxBackoff string + Metadata metadata.IncludeFilterConfig + NumRetries int + OAuth2 OAuth2Config + ProxyURL string + RateLimit string + Retry string + SuccessfulOn []int + TLS tls.Config + Timeout string + URL string + Verb string + func ConfigFromAny(v any) (conf OldConfig, err error) + func NewOldConfig() OldConfig + type RequestCreator struct + func RequestCreatorFromOldConfig(conf OldConfig, mgr bundle.NewManagement, opts ...RequestOpt) (*RequestCreator, error) + func (r *RequestCreator) Create(refBatch message.Batch) (req *http.Request, err error) + type RequestOpt func(r *RequestCreator) + func WithExplicitBody(e *field.Expression) RequestOpt + func WithExplicitMultipart(m []MultipartExpressions) RequestOpt + type RequestSigner func(f ifs.FS, req *http.Request) error + func AuthSignerFromParsed(conf *service.ParsedConfig) (RequestSigner, error)