streaming

package
v2.21.0 Latest Latest
Warning

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

Go to latest
Published: Jan 9, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const LineFeed byte = 0x0A
View Source
const RecordSeparator byte = 0x1E

Variables

This section is empty.

Functions

func JsonSequenceStreamingMiddleware

func JsonSequenceStreamingMiddleware(gCtx *gin.Context)

JsonSequenceStreamingMiddleware modifies the request to be an 'streaming' request. On an error the middleware prevents the error handling middleware to render additional error messages to the response as streaming is a special use case.

This code follows IETF RFC 7464. See : https://datatracker.ietf.org/doc/html/rfc7464

func RenderJsonSeqEntry

func RenderJsonSeqEntry(gCtx *gin.Context, target interface{})

func SetupServerSentEventsMiddleware

func SetupServerSentEventsMiddleware(gCtx *gin.Context)

Types

This section is empty.

Jump to

Keyboard shortcuts

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