You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+5-3Lines changed: 5 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -33,7 +33,8 @@ and the request path.
33
33
34
34
### Signing HTTP Requests in Clients
35
35
36
-
To sign HTTP requests from a client, wrap an `http.Client`'s transport with `NewSignTransport`:
36
+
To sign HTTP requests from a client, wrap an `http.Client`'s transport with
37
+
`NewSignTransport`:
37
38
38
39
```go
39
40
client:= http.Client{
@@ -58,8 +59,9 @@ defer resp.Body.Close()
58
59
59
60
### Verifying HTTP Requests in Servers
60
61
61
-
To verify HTTP requests on the server, wrap the `http.Handler`s you wish to protect with `NewVerifyMiddleware`. `NewVerifyMiddleware` returns the wrapping func, so you can reuse
62
-
configuration across multiple handlers.
62
+
To verify HTTP requests on the server, wrap the `http.Handler`s you wish to
63
+
protect with `NewVerifyMiddleware`. `NewVerifyMiddleware` returns the wrapping
64
+
func, so you can reuse configuration across multiple handlers.
63
65
64
66
```go
65
67
h:= http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {
0 commit comments