retlsfetch

package module
v0.0.0-...-e4a1588 Latest Latest
Warning

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

Go to latest
Published: Jul 28, 2023 License: MIT Imports: 15 Imported by: 0

README

Go Reference

retlsfetch

Simple library to (re)fetch TLS secured pages in a way that the data can be re-certified afterward.

This works by saving the raw encrypted bytes, random generator data and other stuff into a file in order to be able to reproduce the exchange at any future time.

Because the TLS data is encrypted and secured against MITM attacks, it means that saving the stream on disk can be used to certify the data in question indeed came from the server it claims to be coming from.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Loader

type Loader struct {
	// contains filtered or unexported fields
}

func NewLoader

func NewLoader(r io.Reader) *Loader

func (*Loader) Do

func (l *Loader) Do(req *http.Request) (*http.Response, error)

func (*Loader) Get

func (l *Loader) Get(u string) (*http.Response, error)

type Saver

type Saver struct {
	// contains filtered or unexported fields
}

func NewSaver

func NewSaver(w io.Writer) *Saver

func (*Saver) Do

func (s *Saver) Do(req *http.Request) (*http.Response, error)

func (*Saver) Get

func (s *Saver) Get(u string) (*http.Response, error)

func (*Saver) ReadRand

func (s *Saver) ReadRand(b []byte) (int, error)

Jump to

Keyboard shortcuts

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