Skip to content

Commit

Permalink
0.6-SNAPSHOT
Browse files Browse the repository at this point in the history
  • Loading branch information
workingDog committed Feb 21, 2019
1 parent a2c0173 commit b6b7c22
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/main/scala/com/kodekutters/taxii/TaxiiConnection.scala
Original file line number Diff line number Diff line change
Expand Up @@ -159,10 +159,12 @@ case class TaxiiConnection(host: String,
}

/** retrieve the raw response from the connection
* e.g. getRawResponse(...).map { r => ... r.body ...}
* e.g. conn.getRawResponse("https://.....").map { response =>
* println("-----> response status: " + response.status + " body: " + response.body)
* }
*/
def getRawResponse(thePath: String, theHeaders: Seq[(String, String)] = getHeaders,
filter: Option[Seq[(String, String)]] = None): Future[StandaloneWSResponse] = {
filter: Option[Seq[(String, String)]] = None): Future[StandaloneWSResponse] = {

wsClient.url(thePath)
.withAuth(user, password, WSAuthScheme.BASIC)
Expand Down

0 comments on commit b6b7c22

Please sign in to comment.