s2s

package
v0.0.0-...-26e3111 Latest Latest
Warning

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

Go to latest
Published: Jan 26, 2025 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type HTTPSignatureTransport

type HTTPSignatureTransport struct {
	Base http.RoundTripper

	Key   crypto.PrivateKey
	Actor *vocab.Actor
}

func S2SWrapTransport

func S2SWrapTransport(base http.RoundTripper, actor *vocab.Actor, key crypto.PrivateKey) HTTPSignatureTransport

func (*HTTPSignatureTransport) RoundTrip

func (s *HTTPSignatureTransport) RoundTrip(req *http.Request) (*http.Response, error)

RoundTrip dispatches the received request after signing it

Jump to

Keyboard shortcuts

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