defserver

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Oct 22, 2021 License: MIT Imports: 5 Imported by: 0

Documentation

Overview

Package defserver.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(addr string, handler http.Handler, opts ...Option) (*http.Server, error)

New return http.Server that commonly used.

Types

type Option

type Option func(*http.Server) error

func WithNoDefaultMiddleware

func WithNoDefaultMiddleware() Option

func WithNoTimeout

func WithNoTimeout() Option

func WithTLS

func WithTLS(opts ...deftls.Option) Option

Jump to

Keyboard shortcuts

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