In the example, for encoding with Json using the Send Databinder, Nathan uses an object (Http) without the method shown here:
import dispatch._
import Http._
Http("http://www.fox.com/dollhouse/" >>> System.out )
How he does it?
Thanks for all the answers, unfortunately I was not specific enough ...
It seems that the argument is simply passed to the constructor of the Http class or companion object.
In another example, I saw a different form:
http = new Http
http()
Is it really a Scala? I think it should be, because the author is an expert at Scala. But that doesn't make sense to me. Actions are usually performed by calling methods on objects, whether explicitly as object.doSomething () or implicitly as object = something (using the apply () method under syntactic sugar).
, , , - . , , , - .