httpfs

package
v0.0.0-...-e2c53ed Latest Latest
Warning

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

Go to latest
Published: Mar 26, 2024 License: Apache-2.0 Imports: 12 Imported by: 0

README

Package cloudeng.io/net/http/httpfs

import cloudeng.io/net/http/httpfs

Functions

Func New
func New(client *http.Client, options ...Option) file.FS

New creates a new instance of file.FS backed by http/https.

Types

Type Option
type Option func(o *options)
Functions
func WithHTTPScheme() Option
Type Response
type Response struct {
	// When the response was received.
	When time.Time

	// Fields copied from the http.Response.
	Headers                http.Header
	Trailers               http.Header
	ContentLength          int64
	StatusCode             int
	ProtoMajor, ProtoMinir int
	TransferEncoding       []string
}

Response is a redacted version of http.Response that can be marshaled using gob.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(client *http.Client, options ...Option) file.FS

New creates a new instance of file.FS backed by http/https.

Types

type Option

type Option func(o *options)

func WithHTTPScheme

func WithHTTPScheme() Option

type Response

type Response struct {
	// When the response was received.
	When time.Time

	// Fields copied from the http.Response.
	Headers                http.Header
	Trailers               http.Header
	ContentLength          int64
	StatusCode             int
	ProtoMajor, ProtoMinir int
	TransferEncoding       []string
}

Response is a redacted version of http.Response that can be marshaled using gob.

Jump to

Keyboard shortcuts

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