| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990 |
- <?php
- /*
- * This file is part of the php-phantomjs.
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
- namespace JonnyW\PhantomJs\Message;
- /**
- * PHP PhantomJs
- *
- * @author Jon Wenmoth <contact@jonnyw.me>
- */
- interface ResponseInterface
- {
- /**
- * Set response data
- *
- * @return JonnyW\PhantomJs\Message\ResponseInterface
- */
- public function setData(array $data);
- /**
- * Get HTTP headers array
- *
- * @return array
- */
- public function getHeaders();
- /**
- * Get HTTP header value for code
- *
- * @praam string $$code
- * @return mixed
- */
- public function getHeader($code);
- /**
- * Get response status code
- *
- * @return int|null
- */
- public function getStatus();
- /**
- * Get page content from respone
- *
- * @return string
- */
- public function getContent();
- /**
- * Get content type header
- *
- * @return string
- */
- public function getContentType();
- /**
- * Get request URL
- *
- * @return string
- */
- public function getUrl();
- /**
- * Get redirect URL (if redirected)
- *
- * @return string
- */
- public function getRedirectUrl();
- /**
- * Is response a redirect
- * - Checks status codes
- *
- * @return boolean
- */
- public function isRedirect();
- /**
- * Get time string
- *
- * @return string
- */
- public function getTime();
- }
|