mirror of
https://github.com/wailsapp/wails.git
synced 2025-05-02 19:31:20 +08:00
26 lines
498 B
Go
26 lines
498 B
Go
package webview
|
|
|
|
import (
|
|
"errors"
|
|
"net/http"
|
|
)
|
|
|
|
const (
|
|
HeaderContentLength = "Content-Length"
|
|
HeaderContentType = "Content-Type"
|
|
)
|
|
|
|
var (
|
|
errRequestStopped = errors.New("request has been stopped")
|
|
errResponseFinished = errors.New("response has been finished")
|
|
)
|
|
|
|
// A ResponseWriter interface is used by an HTTP handler to
|
|
// construct an HTTP response for the WebView.
|
|
type ResponseWriter interface {
|
|
http.ResponseWriter
|
|
|
|
// Finish the response and flush all data.
|
|
Finish() error
|
|
}
|