Skip to content

Commit

Permalink
readme
Browse files Browse the repository at this point in the history
  • Loading branch information
bddjr committed Jun 21, 2024
1 parent f46aa60 commit 8d1fd94
Showing 1 changed file with 33 additions and 0 deletions.
33 changes: 33 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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)

0 comments on commit 8d1fd94

Please sign in to comment.