net

package module
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Oct 18, 2023 License: OSL-3.0 Imports: 9 Imported by: 0

README

HTTP

https://curl.se/docs/manpage.html#OPTIONS

Progress is used in same function as net/http

Silent is used in same function as net/http

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Binary

func Binary(b []byte) bool

func Binary_Rune

func Binary_Rune(r rune) bool

I originally used: mimesniff.spec.whatwg.org#binary-data-byte but it fails with: fileformat.info/info/unicode/char/1b

func Decode

func Decode(src string) ([]byte, error)

func Encode

func Encode(src []byte) string

func Location

func Location() func()

func No_Location

func No_Location() func()

func Silent

func Silent() func()

func Trace

func Trace() func()

func Verbose

func Verbose() func()

Types

type Progress

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

curl.se/docs/manpage.html#--no-progress-meter

func Progress_Length

func Progress_Length(length int64) *Progress

func Progress_Parts

func Progress_Parts(length int) *Progress

func (*Progress) Reader

func (p *Progress) Reader(res *http.Response) io.Reader

complete-length

 last       parts.last
--------   -------------
 length     parts.length

func (*Progress) Write

func (p *Progress) Write(b []byte) (int, error)

Jump to

Keyboard shortcuts

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