Help us shape the future of Go! Take the 2026 Go Developer Survey

webview

package
v2.17.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 18, 2026 License: MIT Imports: 11 Imported by: 3

Documentation

Index

Constants

View Source
const (
	HeaderContentLength = "Content-Length"
	HeaderContentType   = "Content-Type"
)
View Source
const Webkit2MinMinorVersion = 0

Variables

This section is empty.

Functions

This section is empty.

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 added in v2.5.0

func NewRequest(webKitURISchemeRequest unsafe.Pointer) Request

NewRequest creates as new WebViewRequest based on a pointer to an `WebKitURISchemeRequest`

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
}

A ResponseWriter interface is used by an HTTP handler to construct an HTTP response for the WebView.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL