inproc

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Nov 10, 2026 License: AGPL-3.0 Imports: 3 Imported by: 0

Documentation

Overview

Package inproc is an http.RoundTripper that runs a request against an http.Handler in the same process. The combined `serve` mode uses it between its halves, so it goes through the same middleware, headers and JSON as two processes do.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Transport

func Transport(h http.Handler) http.RoundTripper

Transport returns a transport that runs requests against h in the same process, on a goroutine of its own. The body of the answer is streamed, not buffered.

Types

This section is empty.

Jump to

Keyboard shortcuts

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