Help us shape the future of Go! Take the 2026 Go Developer Survey

httpkit

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Oct 5, 2026 License: MIT Imports: 3 Imported by: 0

Documentation

Overview

Package httpkit adapts a net/http Handler to testkit.Doer. It is the net/http counterpart of fiberkit, and like fiberkit it exists so the root package imports no web framework.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Doer

func Doer(h http.Handler) testkit.Doer

Doer serves each request through h with an httptest.ResponseRecorder. Nothing binds a port. A handler that writes no status code yields 200, which is the recorder's default and matches what net/http sends on a real connection.

Types

This section is empty.

Jump to

Keyboard shortcuts

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