| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283 |
- <?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;
- /**
- * PHP PhantomJs
- *
- * @author Jon Wenmoth <contact@jonnyw.me>
- */
- interface ResponseInterface
- {
- /**
- * 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();
- }
|