http

package
v0.0.7 Latest Latest
Warning

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

Go to latest
Published: Oct 17, 2022 License: Apache-2.0, MIT Imports: 7 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Web3Response

type Web3Response struct {
	*http.Response
	// contains filtered or unexported fields
}

Web3Response is a response to a call to the Get method.

func NewWeb3Response

func NewWeb3Response(r *http.Response, bsvc blockservice.BlockService) *Web3Response

func (*Web3Response) Files

func (r *Web3Response) Files() (fs.File, fs.FS, error)

Files consumes the HTTP response and returns the root file (which may be a directory). You can use the returned FileSystem implementation to read nested files and directories if the returned file is a directory.

Jump to

Keyboard shortcuts

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