fetch

package
v0.0.0-...-e62627f Latest Latest
Warning

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

Go to latest
Published: Aug 31, 2026 License: MIT Imports: 16 Imported by: 0

Documentation

Index

Constants

View Source
const ModuleName = "fetch"

Variables

This section is empty.

Functions

func InstallGlobal

func InstallGlobal(ctx *quickjs.Context, options ...Option) error

func Module

func Module(options ...Option) module.Definition

Types

type Config

type Config struct {
	Transport      http.RoundTripper
	Policy         Policy
	ResourceLimits *limits.Runtime
}

type Option

type Option func(*Config)

func WithPolicy

func WithPolicy(policy Policy) Option

func WithResourceLimits

func WithResourceLimits(resourceLimits *limits.Runtime) Option

WithResourceLimits shares one runtime-local resource policy between fetch module exports and the fetch global.

func WithTransport

func WithTransport(transport http.RoundTripper) Option

type Policy

type Policy func(*http.Request) error

Jump to

Keyboard shortcuts

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