http

package module
v1.6.0 Latest Latest
Warning

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

Go to latest
Published: Aug 24, 2023 License: MIT Imports: 8 Imported by: 0

Documentation

Overview

Package http have functions and packages to simplify our usage of http

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FromJSON

func FromJSON(logger log.Logger, output interface{}, r io.Reader) error

FromJSON turns a json string into a struct by output given.

func ToJSON

func ToJSON(ctx context.Context, logger log.Logger, input interface{}, w http.ResponseWriter, status int)

ToJSON transform a struct given into json string.

Types

This section is empty.

Directories

Path Synopsis
Package client make easy to use an http client
Package client make easy to use an http client
Package server is the package responsible for http server
Package server is the package responsible for http server
middleware
Package middleware is about middlewares that must be added to chi handler.
Package middleware is about middlewares that must be added to chi handler.
Package url is a set of tools to help work safely with urls.
Package url is a set of tools to help work safely with urls.
Package utils is about function utils that can be used ex: utils.StatusLevel(logger, writer.status, utils.ServerMode)
Package utils is about function utils that can be used ex: utils.StatusLevel(logger, writer.status, utils.ServerMode)

Jump to

Keyboard shortcuts

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