httpaddhost

package
v0.0.0-...-231b78a Latest Latest
Warning

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

Go to latest
Published: Dec 13, 2021 License: MIT Imports: 5 Imported by: 0

Documentation

Overview

httpaddhost adds a dummy Host: header to http requests. This is needed because some version of iOS send HTTP/1.1 requests lacking this header, which the golang stdlib http server does not accept

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type HTTPAddHost

type HTTPAddHost struct {
	net.Listener
}

func Wrap

func Wrap(listener net.Listener) *HTTPAddHost

func (*HTTPAddHost) Accept

func (d *HTTPAddHost) Accept() (net.Conn, error)

Jump to

Keyboard shortcuts

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