httputil

package
v0.4.5 Latest Latest
Warning

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

Go to latest
Published: Apr 20, 2021 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckURL

func CheckURL(u string) (exist bool, ok bool)

CheckURL checks if the given signed URL exists by a HEAD http request. Non-existance doesn't fail with an error.

func DeleteURL

func DeleteURL(u string) (ok bool)

DeleteURL deletes the target of the given signed URL.

func DownloadWriter

func DownloadWriter(u string, w io.Writer) (ok bool)

DownloadWriter downloads content from the given signed URL to the given io Writer.

func IsStatusOK added in v0.3.0

func IsStatusOK(s int) (ok bool)

IsStatusOK checks if the status of the http response is a failure.

func UploadReader

func UploadReader(u string, content io.Reader) (ok bool)

UploadReader uploads content to the given signed URL.

Types

This section is empty.

Jump to

Keyboard shortcuts

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