httpserver

package
v1.12.4 Latest Latest
Warning

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

Go to latest
Published: Oct 3, 2025 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Overview

Package httpserver is a wrapper for http.Server

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Server

type Server struct {
	Listener net.Listener

	ReadTimeout  time.Duration
	WriteTimeout time.Duration
	IdleTimeout  time.Duration

	Handler http.Handler
}

func (*Server) ListenAndServe

func (s *Server) ListenAndServe(ctx context.Context) error

type ServerTLS

type ServerTLS struct {
	Listener net.Listener

	ReadTimeout  time.Duration
	WriteTimeout time.Duration
	IdleTimeout  time.Duration

	Handler http.Handler

	CertFile string
	KeyFile  string
}

func (*ServerTLS) ListenAndServe

func (s *ServerTLS) ListenAndServe(ctx context.Context) error

Jump to

Keyboard shortcuts

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