client

package
v0.0.0-...-0d6871a Latest Latest
Warning

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

Go to latest
Published: May 13, 2022 License: AGPL-3.0 Imports: 6 Imported by: 0

Documentation

Overview

package client TODO rename httpclient?

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Download

func Download(ctx context.Context, url string) ([]byte, error)

Download opens the given URL, reads it body and returns it.

func Open

func Open(ctx context.Context, url string) (io.ReadCloser, error)

Open opens the given URL, returning a handle to the response body. The caller is responsible for closing the body.

Types

This section is empty.

Jump to

Keyboard shortcuts

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