http

package
v0.0.0-...-da72ffe Latest Latest
Warning

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

Go to latest
Published: May 16, 2025 License: MIT Imports: 10 Imported by: 0

Documentation

Overview

handler.go

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type TrafficHandler

type TrafficHandler struct {
	// contains filtered or unexported fields
}

TrafficHandler processes raw HTTP data.

func NewHTTPTrafficHandler

func NewHTTPTrafficHandler(logger logger.Logger) *TrafficHandler

NewHTTPTrafficHandler creates a new instance of TrafficHandler.

func (*TrafficHandler) Handle

func (h *TrafficHandler) Handle(ctx *tcp.ConnectionContext, conn gnet.Conn) gnet.Action

Handle processes incoming data and sends responses.

Jump to

Keyboard shortcuts

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