httpx

package module
v0.3.1 Latest Latest
Warning

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

Go to latest
Published: Jun 11, 2020 License: Apache-2.0 Imports: 14 Imported by: 0

README

HTTPX

Build Status GoDoc License

A collection of internal tools for building HTTP services

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewRouter

func NewRouter(opt *RouterOptions) chi.Router

NewRouter inits a new chi.Router with options

Types

type RouterOptions

type RouterOptions struct {
	CORS         *cors.Options
	SecureHeader *secureheader.Config

	Heartbeat       string // heartbeat path, set to "false" to disable
	DisableLog      bool   // disable log instrumentation
	DisableMet      bool   // disable met instrumentation
	DisableCompress bool   // disable compression
}

RouterOptions support custom router configuration.

Jump to

Keyboard shortcuts

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