MCPcopy Create free account
hub / github.com/aurora-develop/aurora / writeImageStreamHeader

Function writeImageStreamHeader

initialize/handlers.go:848–854  ·  view source on GitHub ↗
(c *gin.Context)

Source from the content-addressed store, hash-verified

846}
847
848func writeImageStreamHeader(c *gin.Context) {
849 c.Writer.Header().Set("Content-Type", "text/event-stream")
850 c.Writer.Header().Set("Cache-Control", "no-cache")
851 c.Writer.Header().Set("Connection", "keep-alive")
852 c.Writer.Header().Set("X-Accel-Buffering", "no")
853 c.Writer.WriteHeader(200)
854}
855
856func writeImageStreamEvent(c *gin.Context, event string, payload interface{}) bool {
857 data, err := json.Marshal(payload)

Callers 2

imageGenerationsMethod · 0.85
runImageEditFlowMethod · 0.85

Calls 1

SetMethod · 0.80

Tested by

no test coverage detected