From 8d1fd9483001e39c7b62f653870d1df5830e338b Mon Sep 17 00:00:00 2001 From: bddjr Date: Fri, 21 Jun 2024 12:12:55 +0800 Subject: [PATCH] readme --- README.md | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) diff --git a/README.md b/README.md index d7bd892..63eec99 100644 --- a/README.md +++ b/README.md @@ -172,6 +172,12 @@ srv := hlfhr.New(&http.Server{}) srv := hlfhr.NewServer(&http.Server{}) ``` +#### Server.Hlfhr_IsShuttingDown +```go +var srv *hlfhr.Server +isShuttingDown := srv.Hlfhr_IsShuttingDown() +``` + #### ReadReqHostPath ```go var rb []byte @@ -224,6 +230,33 @@ var resp *hlfhr.Response resp.ScriptRedirect() ``` +#### NewListener +```go +var l net.Listener +var h HttpOnHttpsPortErrorHandler +l = hlfhr.NewListener(l, 4096, h) +``` + +#### IsMyListener +```go +var l net.Listener +isHlfhrListener := hlfhr.IsMyListener(l) +``` + +#### NewConn +```go +var c net.Conn +var h HttpOnHttpsPortErrorHandler +c = hlfhr.NewConn(c, 4096, h) +``` + +#### IsMyConn +```go +var c net.Conn +isHlfhrConn := hlfhr.IsMyConn(c) +``` + + *** ## License [BSD-3-clause license](LICENSE.txt)