streamhttp

package
v1.10.4 Latest Latest
Warning

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

Go to latest
Published: Nov 4, 2026 License: MIT Imports: 1 Imported by: 0

Documentation

Overview

Package streamhttp shares HTTP streaming behavior across transport adapters.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CanFlush

func CanFlush(writer http.ResponseWriter) bool

CanFlush checks the response-controller flush capability without writing a status line. It follows wrappers with the same bounded traversal as Flush.

func Flush

func Flush(writer http.ResponseWriter) error

Flush preserves wrapper flush behavior, then checks an error-aware inner writer. Forge's http.Flusher wrappers cannot return socket errors to ResponseController. A second flush of the inner writer is empty on success and observes sticky I/O failures without bypassing compression or before-write callbacks.

Types

This section is empty.

Jump to

Keyboard shortcuts

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