-
-
Notifications
You must be signed in to change notification settings - Fork 86
New issue
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
adding request method into request method params #52
Comments
You should be able to do: @ requests.Requester("GET", requests.`package`).apply("https://www.google.com")
res0: requests.Response = Response(
url = "https://www.google.com",
statusCode = 200,
statusMessage = "OK",
data = <!doctype html><html itemscope="" itemtype="http://schema.org/WebPage" lang="en-SG"><head><meta content="text/html; charset=UTF-8" http-equiv="Content-Type"><meta content="/logos/doodles/2021/seasonal-holidays-2021-6753651837109324-6752733080595605-cst.gif" itemprop="image"><meta content="Seasonal Holidays 2021" property="twitter:title"><meta content="Seasonal Holidays 2021 #GoogleDoodle" property="twitter:description"><meta content="Seasonal Holidays 2021 #GoogleDoodle" property="og:description"><meta content="summary_large_image" property="twitter:card"><meta content="@GoogleDoodles" property="twitter:site"><meta content="htt |
lihaoyi
added a commit
that referenced
this issue
Dec 10, 2021
Fixes #67 Fixes #52 This was always possible in a roundabout way via ```scala requests.Requester("get", requests.Session()).apply("https://www.google.com") ``` But this PR adds a convenient alias and documents it for discoverability ```scala requests.send("get")("https://www.google.com") ```
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Is there any way to put request method into request method parameters like in python?
currently we make request like this in scala
but in python we can do
The text was updated successfully, but these errors were encountered: