question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

how do I pass some options to the request library?

See original GitHub issue

I 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:closed
  • Created 7 years ago
  • Comments:25 (12 by maintainers)

github_iconTop GitHub Comments

1reaction
ralyodiocommented, Oct 20, 2016

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.

1reaction
not-an-aardvarkcommented, Oct 20, 2016

Okay, sounds good. So I’ll add a rawRequest function that allows for custom request behavior via subclassing.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found