request

package
v0.0.0-...-efcff09 Latest Latest
Warning

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

Go to latest
Published: Mar 23, 2024 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AttestEnclaveServer

func AttestEnclaveServer(f goja.FunctionCall, vm *goja.Runtime) goja.Value

parameters: serverURL string, signerID string, uniqueID string return: isSuccess bool, reason string

func InitTrustedHttpsCerts

func InitTrustedHttpsCerts(certs []string) error

func LoadTlsConfig

func LoadTlsConfig(certs []string) (*tls.Config, error)

Types

type HttpResponse

type HttpResponse struct {
	Status     string
	StatusCode int
	Headers    [][2]string
	Body       string
}

func HttpsRequest

func HttpsRequest(method, serverURL, body string, headers ...string) HttpResponse

Jump to

Keyboard shortcuts

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