xnet

package
v0.8.0 Latest Latest
Warning

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

Go to latest
Published: Mar 10, 2024 License: MIT Imports: 2 Imported by: 0

Documentation

Overview

Package xnet provides functions and utilities that extend Go's standard net module.

Index

Constants

View Source
const (
	// DefaultDialerTimeout is the default maximum amount of time a dial will wait for
	// a connection to complete.
	DefaultDialerTimeout = 30 * time.Second

	// DefaultDialerKeepAlive is the default amount of time a connection will be
	// kept alive.
	DefaultDialerKeepAlive = 30 * time.Second
)

Variables

This section is empty.

Functions

func NewDialer

func NewDialer() *net.Dialer

NewDialer returns a new Dialer with default timeout values.

These values are not one-size-fits-all and should be adapted based on specific application needs and network characteristics.

Types

This section is empty.

Directories

Path Synopsis
Package xhttp provides utility functions for HTTP requests.
Package xhttp provides utility functions for HTTP requests.
xhttputil
Package xhttputil provides utility functions for HTTP requests and responses.
Package xhttputil provides utility functions for HTTP requests and responses.
xmiddleware
Package xmiddleware contains simple middleware functions.
Package xmiddleware contains simple middleware functions.
Package xurl provides helpers and utilities for working with URLs.
Package xurl provides helpers and utilities for working with URLs.

Jump to

Keyboard shortcuts

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