We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
A small API addition, perhaps instead of doing
response = requests.post{url = 'http://httpbin.org/post', data='random data'}
it could be possible to do (using [1] as the URL if the only argument is a table).
response = requests.post{'http://httpbin.org/post', data='random data'}
thus making the request much closer to actual Python library syntax (with just {} instead of ()) instead of requiring
response = requests.post('http://httpbin.org/post', {data='random data'})
I think it'd just be a one line addition: adding request.url = request[1] or request.url to requests.request function.
request.url = request[1] or request.url
The text was updated successfully, but these errors were encountered:
added ability to use [1] as the URL if the only argument is a table (J…
bf87f26
…akobGreen#14)
Done in #15
Sorry, something went wrong.
No branches or pull requests
A small API addition, perhaps instead of doing
response = requests.post{url = 'http://httpbin.org/post', data='random data'}
it could be possible to do (using [1] as the URL if the only argument is a table).
response = requests.post{'http://httpbin.org/post', data='random data'}
thus making the request much closer to actual Python library syntax (with just {} instead of ()) instead of requiring
response = requests.post('http://httpbin.org/post', {data='random data'})
I think it'd just be a one line addition: adding
request.url = request[1] or request.url
to requests.request function.The text was updated successfully, but these errors were encountered: