http

package
v0.0.0-...-37cc865 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ContextType = types.NewOpaqueType("http.Context")

Functions

func Latest

func Latest() *version.Version

func Lib

func Lib(httpCtx ContextInterface, v *version.Version) cel.EnvOption

Types

type ClientInterface

type ClientInterface interface {
	Do(*http.Request) (*http.Response, error)
}

type Context

type Context struct {
	ContextInterface
}

type ContextInterface

type ContextInterface interface {
	Get(url string, headers map[string]string) (any, error)
	Post(url string, data any, headers map[string]string) (any, error)
	Client(caBundle string) (ContextInterface, error)
}

func NewHTTP

func NewHTTP(client ClientInterface) ContextInterface

Jump to

Keyboard shortcuts

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