Skip to content

Commit

Permalink
Calling it "1.0"
Browse files Browse the repository at this point in the history
  • Loading branch information
william-hood committed May 29, 2021
1 parent 1a53ea1 commit 660b186
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 3 deletions.
11 changes: 10 additions & 1 deletion Memoir/src/ShowHttpMessages.kt
Original file line number Diff line number Diff line change
Expand Up @@ -225,4 +225,13 @@ fun Memoir.showHttpTransaction(request: HttpRequest, bodyContentAsString: String
val result = client.send(request, HttpResponse.BodyHandlers.ofString())
showHttpResponse(result, callbackFunction)
return result
}
}

/* TODO: Provide a version of the function that uses the request embedded in the response.
* The trick is getting a text version of the body correctly.
fun Memoir.showHttpTransaction(response: HttpResponse<*>, callbackFunction: ((fieldName: String, fieldValue: String)->String)? = null) {
val request = response.request()
showHttpRequest(request, "(tbd)", callbackFunction)
showHttpResponse(response, callbackFunction)
}
*/
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Hoodland Open Source Projects

##### Release 1.0.BETA1
##### Release 1.0

These projects are the "spiritual successors" to software I've developed over
the course of my career as an SDET. In June of 2020, having grown frustrated
Expand Down Expand Up @@ -58,7 +58,7 @@ Here's what sets it apart from other test frameworks:
- These projects have been tested on macOS and Ubuntu. As of this writing I haven't tried using them under Windows but see no reason why they wouldn't work.

## Released under the terms of the MIT License
©2020 William Hood
©2021 William Hood

*Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down

0 comments on commit 660b186

Please sign in to comment.