Skip to content

Commit

Permalink
#7 Add useful comments for the wrapper
Browse files Browse the repository at this point in the history
  • Loading branch information
thegodenage committed Mar 13, 2024
1 parent 3077d70 commit 5c251a9
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion internal/request/wrapper.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,11 @@ import (
"net/http"
)

// Wrapper is used to wrap request, in order to not pass it every time.
type Wrapper struct {
Request *http.Request
Request *http.Request
// IPAddress is a real ip address of the client. The difference between this one and request remoteAddr is
// that it can be read from the headers (i.e. if request was forwarded by some kind of proxy).
IPAddress *net.IP
}

Expand Down

0 comments on commit 5c251a9

Please sign in to comment.