forked from pypa/pip
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add CLI options for enhancing requests with HTTP headers
-H, --header <key:val> HTTP header to include in all requests. This option can be used multiple times. Conflicts with --extra-index-url. Example: ``` pip install \ --index-url http://pypi.index/simple/ \ --trusted-host pypi.index \ -H 'X-Spam: ~*~ SPAM ~*~' \ requests ```
- Loading branch information
Alexander Mancevice
committed
May 14, 2020
1 parent
a879bc4
commit ffc64a6
Showing
6 changed files
with
113 additions
and
2 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 |
---|---|---|
@@ -0,0 +1,15 @@ | ||
Add CLI options for enhancing requests with HTTP headers | ||
|
||
-H, --header <key:val> HTTP header to include in all requests. This option | ||
can be used multiple times. Conflicts with | ||
--extra-index-url. | ||
|
||
Example: | ||
|
||
``` | ||
pip install \ | ||
--index-url http://pypi.index/simple/ \ | ||
--trusted-host pypi.index \ | ||
-H 'X-Spam: ~*~ SPAM ~*~' \ | ||
requests | ||
``` |
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
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
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
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
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