-
-
Notifications
You must be signed in to change notification settings - Fork 9.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add note about adapter prefix match to docs (#6465)
- Loading branch information
Showing
1 changed file
with
4 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -994,6 +994,10 @@ The mount call registers a specific instance of a Transport Adapter to a | |
prefix. Once mounted, any HTTP request made using that session whose URL starts | ||
with the given prefix will use the given Transport Adapter. | ||
|
||
.. note:: The adapter will be chosen based on a longest prefix match. Be mindful | ||
prefixes such as ``http://localhost`` will also match ``http://localhost.other.com`` | ||
or ``http://[email protected]``. It's recommended to terminate full hostnames with a ``/``. | ||
|
||
Many of the details of implementing a Transport Adapter are beyond the scope of | ||
this documentation, but take a look at the next example for a simple SSL use- | ||
case. For more than that, you might look at subclassing the | ||
|