feat: strream info + stream related headers

This commit is contained in:
2025-04-19 13:31:16 +02:00
parent 812562e096
commit 6c347e4fa0

View File

@ -13,6 +13,8 @@ const (
H_STATUS = "status"
H_DATA_FORMAT = "data-format"
H_ROUTE = "route"
H_XSTREAM = "x-stream"
H_XSTREAM_KEY = "x-stream-key"
)
const (
@ -46,6 +48,11 @@ type DataFormat struct {
Encoding string
}
type StreamInfo struct {
TotalBytes uint64
BufferSize uint16
}
func TextDataFormat() *DataFormat {
return &DataFormat{Format: DF_TEXT, Encoding: E_UTF8}
}