common

package
v2.0.0-beta.33 Latest Latest
Warning

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

Go to latest
Published: Mar 5, 2022 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrUnexpectedHost = fmt.Errorf("unexpected host")
View Source
var ErrUnexpectedScheme = fmt.Errorf("unexpected scheme")

Functions

This section is empty.

Types

type RequestRespone

type RequestRespone struct {
	Body       []byte
	MimeType   string
	StatusCode int
}

func ProcessRequest

func ProcessRequest(uri string, assets *assetserver.DesktopAssetServer, expectedScheme string, expectedHosts ...string) (RequestRespone, error)

func (RequestRespone) StatusText

func (r RequestRespone) StatusText() string

func (RequestRespone) String

func (r RequestRespone) String() string

Jump to

Keyboard shortcuts

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