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

inproc

package
v0.35.0 Latest Latest
Warning

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

Go to latest
Published: Nov 3, 2026 License: BSD-3-Clause Imports: 4 Imported by: 0

Documentation

Overview

Package inproc carries HTTP requests to a handler in the same process, with no socket: the browser has no unix sockets, so the playground's wctr talks to its engine through this transport instead.

Responses stream: RoundTrip returns as soon as the handler has written its header (explicitly, by flushing, or with the first body byte), and the body is read while the handler still runs — what the container wait and log endpoints rely on.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Transport

type Transport struct {
	Handler http.Handler
}

Transport serves every request with Handler.

func (*Transport) RoundTrip

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

RoundTrip implements http.RoundTripper.

Jump to

Keyboard shortcuts

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