khttp

package
v0.0.0-...-412be7b Latest Latest
Warning

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

Go to latest
Published: Aug 2, 2023 License: Apache-2.0 Imports: 8 Imported by: 5

Documentation

Overview

Package khttp is a transport that authenticates all outgoing requests using SPNEGO (negotiate authentication) http://tools.ietf.org/html/rfc4559.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Handler

func Handler(h http.Handler) http.Handler

Types

type Transport

type Transport struct {
	// keytab file to use
	KeyTab string
	// principal
	Principal string
	// Next specifies the next transport to be used or http.DefaultTransport if nil.
	Next http.RoundTripper
}

HTTP client transport that authenticates all outgoing requests using SPNEGO. Implements the http.RoundTripper interface

func (*Transport) RoundTrip

func (t *Transport) RoundTrip(req *http.Request) (*http.Response, error)

RoundTrip executes a single HTTP transaction performing SPNEGO negotiate authentication.

Jump to

Keyboard shortcuts

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