mirror of
https://github.com/cwinfo/matterbridge.git
synced 2024-12-29 11:35:39 +00:00
21 lines
436 B
Go
21 lines
436 B
Go
|
// SPDX-License-Identifier: MIT
|
||
|
// SPDX-FileCopyrightText: © 2015 LabStack LLC and Echo contributors
|
||
|
|
||
|
//go:build go1.20
|
||
|
|
||
|
package middleware
|
||
|
|
||
|
import (
|
||
|
"bufio"
|
||
|
"net"
|
||
|
"net/http"
|
||
|
)
|
||
|
|
||
|
func responseControllerFlush(rw http.ResponseWriter) error {
|
||
|
return http.NewResponseController(rw).Flush()
|
||
|
}
|
||
|
|
||
|
func responseControllerHijack(rw http.ResponseWriter) (net.Conn, *bufio.ReadWriter, error) {
|
||
|
return http.NewResponseController(rw).Hijack()
|
||
|
}
|