Skip to content

v2.0.0-beta2

Pre-release
Pre-release
Compare
Choose a tag to compare
@ElGigi ElGigi released this 12 Jan 23:43
· 52 commits to 2.x since this release

Added

  • New method HarParser::addEntryToSession(Session $session, Entry $entry): void
  • New method HarParser::getTimings(Entry $entry): Timings
  • New method Session::getLastRequest(): ?RequestInterface
  • New method Session::getLastResponse(): ?ResponseInterface
  • New method Session::createFromHarFile(): Session
  • New callback option for requests
  • New followLocation option for requests, return 3xx Response object if it's a redirection
  • Add missing 'Content-Length' header during preparation of request

Changed

  • Visibility of method HarParser::getHttpRequest(Request $request): RequestInterface to public
  • Visibility of method HarParser::getHttpResponse(Response $response): ResponseInterface to public
  • Merge options of request with global options
  • Use previous request URI if "baseUri" option is not defined

Fixed

  • Default "sleepTime" option to 0
  • Conversion of "sleepTime" in ms to microseconds