scalaj-http
scalaj-http copied to clipboard
Simple scala wrapper for HttpURLConnection. OAuth included.
``` Http("http://localhost:39180/api") .method("GET") .header("X", "test-app") .asString ``` is there a way to send a request body with a get request? My app functions in such way that it needs a...
I am a novice in network protocol. In other programming languages (such as Python or Julia), I can send a request with authentication using code similar to the following ```python...
Hello, I'm trying to run the following method in a databricks scala notebook: `val tweetsSentimentList = tweetsSentimentsRdd.collect()` after runnig this mehod: `val tweetsSentimentsRdd = sc.textFile("/FileStore/tables/tweets-30.04.21.txt").filter(removeHttpLines).map(x=>requestFormatter(x)).map(y=>sendPostRequest("myUrl","myKey",y))` after runnig these three methods:...
It seems the scalaj-http_2.12 package is compiled with 2.11. I got the following Exception in runtime. java.lang.NoSuchMethodError: scala.Product.$init$(Lscala/Product;) Here is the dependency ```xml org.scalaj scalaj-http_2.12 2.4.2 ``` Here is the...
I have an application that sends data to an API in a multipart post request. The application works properly throughout the day but it fails sometimes randomly or multiple times...
Setting a ModuleName should ease some JavaModuleSystem interactions. The jar names of scala-jars are especially problematic. ```java.lang.IllegalArgumentException: scalaj.http.2.12: Invalid module name: '2' is not a Java identifier``` The scala version...
hi, i want to connect the api which is secure by client certs and key data but i'm unable to find any information regrading how to create sslSocketFactory can you...
Many tools like curl, Apache HttpComponents allow to do this. I think only Basic auth is possible.
callback passed to exec invoked 2 times, swallows original exception and passes null as input stream
Hi, The code in doConnection has try catch on connectFunc and then on toResponse, but the method toResponse invokes the parser (callback from user), so that's very bad. Instead of...
Having no dependencies makes scalaj-http really appealing for use with graal. But there is one hiccup because scalaj has a single use of reflections\[0\]. If there was a way to...