http

package
v0.13.0 Latest Latest
Warning

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

Go to latest
Published: Sep 2, 2021 License: Apache-2.0 Imports: 7 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client interface {
	RenderContentJSON(ctx context.Context, w http.ResponseWriter, body []byte)
	RenderCreated(ctx context.Context, w http.ResponseWriter, location string)
	RenderErrorOrStatus(ctx context.Context, w http.ResponseWriter, err error)
	RenderHealth(ctx context.Context, w http.ResponseWriter, serviceName string)
	RenderNoContent(ctx context.Context, w http.ResponseWriter)
	MiddlewareDefaults(r *chi.Mux, excludePathsForLogInfoRequests []string)
}

func NewClient

func NewClient(ctx context.Context, logClient go_log.Client, serviceNameForHeaders string) Client

NewClient for http

Service name should be in canonical case as it is used for custom response headers Use an empty string to use default keys

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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