interceptor

package
v0.0.0-...-42652ab Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 8, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Overview

Package interceptor handles oauth signing of every http request before sending.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetHttpClient

func GetHttpClient(config jwe.JWEConfig, sign func(req *http.Request) error) (*http.Client, error)

GetHttpClient provides the http.Client having capability to intercept the http call and perform encryption/decryption as-well as add the generated oauth1.0a header in each request. config: used to instruct the encryption library how requests should be encrypted/decrypted sign: function used to sign the request using OAuth 1.0a. If OAuth isn't required, 'nil' can be used

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL