MD5 checksum utility.
Extractor to match on successful HTTP response with OK status code.
Extractor to match on successful HTTP response, with OK, PARTIAL_CONTENT or NO_CONTENT status code.
Extractor to match on successful HTTP response, with OK, PARTIAL_CONTENT or NO_CONTENT status code.
import play.api.libs.ws.StandaloneWSResponse import com.zengularity.benji.ws.Successful def foo[T](r: StandaloneWSResponse)( ifSuc: StandaloneWSResponse => T): Option[T] = r match { case Successful(resp) => Some(ifSuc(resp)) case _ => None }
Extractor to match on successful HTTP response with OK status code.