curl

package
v0.18.6 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ExtractCommand

func ExtractCommand(lines []string, cursor int) (start int, end int, cmd string)

func IsStartLine

func IsStartLine(line string) bool

func ParseCommand

func ParseCommand(command string) (*restfile.Request, error)

func ParseCommands

func ParseCommands(command string) ([]*restfile.Request, error)

func SplitCommands

func SplitCommands(src string) []string

func VisibleHeaders

func VisibleHeaders(headers http.Header) []string

Types

type Cmd

type Cmd struct {
	Segs []Seg
}

type Item

type Item struct {
	Opt   Opt
	Pos   string
	IsOpt bool
}

type Opt

type Opt struct {
	Key string
	Val string
}

type Res

type Res struct {
	Req  *restfile.Request
	Warn []string
}

func ParseCommandsInfo

func ParseCommandsInfo(command string) ([]Res, error)

type Seg

type Seg struct {
	Items []Item
	Unk   []string
}

type TokenState

type TokenState struct {
	// contains filtered or unexported fields
}

func (*TokenState) Escaping

func (s *TokenState) Escaping() bool

func (*TokenState) InQuote

func (s *TokenState) InQuote() bool

func (*TokenState) Open

func (s *TokenState) Open() bool

func (*TokenState) ResetEscape

func (s *TokenState) ResetEscape()

type WarningCollector

type WarningCollector struct {
	// contains filtered or unexported fields
}

func (*WarningCollector) Add

func (c *WarningCollector) Add(msg string)

func (*WarningCollector) Flag

func (c *WarningCollector) Flag(flag string)

func (*WarningCollector) List

func (c *WarningCollector) List() []string

func (*WarningCollector) Setting

func (c *WarningCollector) Setting(key string)

func (*WarningCollector) UnknownFlags

func (c *WarningCollector) UnknownFlags(flags []string)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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