com.zengularity.benji.ws
Extractor to match on successful HTTP response with OK status code.
import play.api.libs.ws.{ WSResponse, WSResponseHeaders } def ifOk[T](r: WSResponse)(f: WSResponse => T): Option[T] = r match { case OK(resp) => Some(f(res)) case _ => None }
Extractor to match on successful HTTP response with OK status code.