httpreader

package
v1.24.0-rc4 Latest Latest
Warning

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

Go to latest
Published: Nov 1, 2023 License: Apache-2.0, MIT Imports: 8 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type HttpReader

type HttpReader struct {
	URL string
	// contains filtered or unexported fields
}

HttpReader is a reader which will read a http resource with a simple get request. Before first Read it will be passed over JsonRPC as a URL.

func (*HttpReader) Close

func (h *HttpReader) Close() error

func (*HttpReader) Read

func (h *HttpReader) Read(p []byte) (n int, err error)

type ResumableReader added in v1.23.1

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

func NewResumableReader added in v1.23.1

func NewResumableReader(ctx context.Context, url string) (*ResumableReader, error)

func (*ResumableReader) ContentLength added in v1.23.1

func (r *ResumableReader) ContentLength() int64

func (*ResumableReader) Read added in v1.23.1

func (r *ResumableReader) Read(p []byte) (n int, err error)

Jump to

Keyboard shortcuts

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