From 655b6b211ae6df0186abd740f248939f7ddeaec1 Mon Sep 17 00:00:00 2001 From: Runxi Yu Date: Mon, 31 Mar 2025 16:59:18 +0800 Subject: Add descriptive comments to most Go functions --- http_server.go | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'http_server.go') diff --git a/http_server.go b/http_server.go index 2b1f77a..6520037 100644 --- a/http_server.go +++ b/http_server.go @@ -15,6 +15,10 @@ import ( type forgeHTTPRouter struct{} +// ServeHTTP handles all incoming HTTP requests and routes them to the correct +// location. +// +// TODO: This function is way too large. func (router *forgeHTTPRouter) ServeHTTP(writer http.ResponseWriter, request *http.Request) { var remoteAddr string if config.HTTP.ReverseProxy { -- cgit v1.2.3