clientutil

package
v0.0.0-...-a14268e Latest Latest
Warning

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

Go to latest
Published: Dec 26, 2024 License: Apache-2.0 Imports: 4 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ParseContentLength

func ParseContentLength(m http.Header) (int64, error)

ParseContentLength returns the content length (in bytes) parsed from the Content-Length HTTP header in input.

func ParseLastModified

func ParseLastModified(m http.Header, f string) (time.Time, error)

ParseLastModified returns the timestamp parsed from the Last-Modified HTTP header in input. Passing an second parameter, named f, to specify the time format. If f is empty then RFC3339 will be used as default format.

Types

This section is empty.

Jump to

Keyboard shortcuts

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