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