def toBody(request: AhcWSRequest): Option[String] = { // body (note that this has only been checked for text, not binary) request.getBody.map { body => val charset = findCharset(request) body.decodeString(charset) }
} }
I then add this wsLogger: WSRequestFilter to each wsclient call as per
I read through the Migration Guides doco and had a go upgrading to 2.6.x and this (wsclient request logging)was a real showstopper. With the shadow stuff I'm not at all clear how I can get the Request body into a string. Totally stumped!
Has anyone managed to do this yet?
Will Sargent
unread,
Jul 18, 2017, 5:30:03 PM7/18/17
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message