Documentation
¶
Index ¶
Constants ¶
View Source
const ( HeaderContentLength = "Content-Length" HeaderContentType = "Content-Type" )
View Source
const Webkit2MinMinorVersion = 0
Variables ¶
This section is empty.
Functions ¶
func DisableMainThreadDispatch ¶
func DisableMainThreadDispatch()
DisableMainThreadDispatch marks the GTK main loop as stopped. After it is called, invokeOnMainSync runs callbacks inline on the calling goroutine instead of scheduling them onto the now-dead main loop, so asset-server workers that complete a request during shutdown cannot block forever waiting for a source that will never be serviced. The application layer calls this once g_application_run has returned. See issue #5631.
Types ¶
type Request ¶
type Request interface {
URL() (string, error)
Method() (string, error)
Header() (http.Header, error)
Body() (io.ReadCloser, error)
Response() ResponseWriter
Close() error
}
func NewRequest ¶
type ResponseWriter ¶
type ResponseWriter interface {
http.ResponseWriter
// Finish the response and flush all data. A Finish after the request has already been finished has no effect.
Finish() error
// Code returns the HTTP status code of the response
Code() int
}
A ResponseWriter interface is used by an HTTP handler to construct an HTTP response for the WebView.
Click to show internal directories.
Click to hide internal directories.