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: docs/index.md
+3-3
Original file line number
Diff line number
Diff line change
@@ -2428,9 +2428,9 @@ When a `ghttp` server receives a request it first checks against the set of hand
2428
2428
2429
2429
So far you have seen examples of using `server.URL()` to get the string URL of the test server. This is ok if you are testing code where you can pass the URL. In some cases you might need to pass a `http.Client` or similar.
2430
2430
2431
-
You can use `server.RounderTripper(nil)` to create a `http.RounderTripper` which will redirect requests to the test server.
2431
+
You can use `server.RoundTripper(nil)` to create a `http.RoundTripper` which will redirect requests to the test server.
2432
2432
2433
-
The method takes another `http.RounderTripper` to make the request to the test server, this allows chaining `http.Transports` or otherwise.
2433
+
The method takes another `http.RoundTripper` to make the request to the test server, this allows chaining `http.Transports` or otherwise.
2434
2434
2435
2435
If passed `nil`, then `http.DefaultTransport` is used to make the request.
0 commit comments