how do I pass some options to the request library?
See original GitHub issueI notice you’re using request-promise
under the hood. How can I pass some request options?
I’d like to use a proxy server which request supports as an option:
request({
url: '...',
proxy: 'http://192.168.1.1:8080'
});
I’d like to add a few other options as well. Is there anyway to merge in custom request
options with snoowrap?
Issue Analytics
- State:
- Created 7 years ago
- Comments:25 (12 by maintainers)
Top Results From Across the Web
Python's Requests Library (Guide)
In this tutorial on Python's "requests" library, you'll see some of the most useful features that requests has to offer as well as...
Read more >How To Get Started With the Requests Library in Python
You can create a params dictionary by using the dict() function and passing in the keys and values you want in your dictionary....
Read more >RequestsLibrary - MarketSquare
RequestsLibrary is a Robot Framework library aimed to provide HTTP api testing functionalities by wrapping the well known Python Requests ...
Read more >Advanced Usage — Requests 2.28.1 documentation
This document covers some of Requests more advanced features. ... Any dictionaries that you pass to a request method will be merged with...
Read more >How to pass OData Query Options using requests library in ...
I don't know the python requests libray but my first impression ... response = requests.get(URL, auth=(USER_NAME, PASS_WORD), params=DATA).
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Awesome. Thanks for entertaining the idea. Nothing I’ve seen comes close to Snoowrap for node. Not even Praw is this good in Python IMO.
Okay, sounds good. So I’ll add a
rawRequest
function that allows for custom request behavior via subclassing.