curl

package
v0.0.0-...-2721b3e Latest Latest
Warning

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

Go to latest
Published: May 4, 2024 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Overview

Copyright Vespa.ai. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Command

type Command struct {
	Path          string
	Method        string
	PrivateKey    string
	CaCertificate string
	Certificate   string
	Timeout       time.Duration
	// contains filtered or unexported fields
}

func Get

func Get(url string) (*Command, error)

func Post

func Post(url string) (*Command, error)

func RawArgs

func RawArgs(url string, args ...string) (*Command, error)

func (*Command) Args

func (c *Command) Args() []string

func (*Command) Header

func (c *Command) Header(key, value string)

func (*Command) Param

func (c *Command) Param(key, value string)

func (*Command) Run

func (c *Command) Run(stdout, stderr io.Writer) error

func (*Command) String

func (c *Command) String() string

func (*Command) URLPrefix

func (c *Command) URLPrefix() string

func (*Command) WithBodyFile

func (c *Command) WithBodyFile(fn string)

func (*Command) WithBodyInput

func (c *Command) WithBodyInput(r io.Reader)

Jump to

Keyboard shortcuts

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