oko_2.9.2.0.1.0.source-code.credentials.scala Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of hiroko_2.9.2 Show documentation
Show all versions of hiroko_2.9.2 Show documentation
An interface for the Heroku API
The newest version!
package hiroko
import dispatch._
import com.ning.http.client.{ RequestBuilder, Response }
trait Credentials {
def sign(req: RequestBuilder): RequestBuilder
}
case class BasicAuth(key: String) extends Credentials {
override def sign(req: RequestBuilder) =
req.as_!("", key)
}