# Request

interface Request

## Methods

`public` | `` | `get($key, $default)` | No description |
`public` | `` | `getSession()` | No description |
`public` | `` | `hasPreviousSession()` | No description |
`public` | `` | `hasSession()` | No description |
`public` | `` | `getClientIps()` | No description |
`public` | `` | `getClientIp()` | No description |
`public` | `` | `getScriptName()` | No description |
`public` | `` | `getPathInfo()` | No description |
`public` | `` | `getBasePath()` | No description |
`public` | `` | `getBaseUrl()` | No description |
`public` | `` | `getScheme()` | No description |
`public` | `` | `getPort()` | No description |
`public` | `` | `getUser()` | No description |
`public` | `` | `getPassword()` | No description |
`public` | `` | `getUserInfo()` | No description |
`public` | `` | `getHttpHost()` | No description |
`public` | `` | `getRequestUri()` | No description |
`public` | `` | `getSchemeAndHttpHost()` | No description |
`public` | `` | `getUri()` | No description |
`public` | `` | `getUriForPath($path)` | No description |
`public` | `` | `getRelativeUriForPath($path)` | No description |
`public` | `` | `getQueryString()` | No description |
`public` | `` | `isSecure()` | No description |
`public` | `` | `getHost()` | No description |
`public` | `` | `setMethod($method)` | No description |
`public` | `` | `getMethod()` | No description |
`public` | `` | `getRealMethod()` | No description |
`public` | `` | `getMimeType($format)` | No description |
`public static` | `` | `getMimeTypes($format)` | No description |
`public` | `` | `getFormat($mimeType)` | No description |
`public` | `` | `setFormat($format, $mimeTypes)` | No description |
`public` | `` | `getRequestFormat($default)` | No description |
`public` | `` | `setRequestFormat($format)` | No description |
`public` | `` | `getContentType()` | No description |
`public` | `` | `setDefaultLocale($locale)` | No description |
`public` | `` | `getDefaultLocale()` | No description |
`public` | `` | `setLocale($locale)` | No description |
`public` | `` | `getLocale()` | No description |
`public` | `` | `isMethod($method)` | No description |
`public` | `` | `isMethodSafe()` | No description |
`public` | `` | `isMethodIdempotent()` | No description |
`public` | `` | `isMethodCacheable()` | No description |
`public` | `` | `getContent($asResource)` | No description |
`public` | `` | `getETags()` | No description |
`public` | `` | `isNoCache()` | No description |
`public` | `` | `getPreferredLanguage()` | No description |
`public` | `` | `getLanguages()` | No description |
`public` | `` | `getCharsets()` | No description |
`public` | `` | `getEncodings()` | No description |
`public` | `` | `getAcceptableContentTypes()` | No description |
`public` | `` | `isXmlHttpRequest()` | No description |
`public` | `` | `isFromTrustedProxy()` | No description |
`public static` | `` | `post()` | No description |
`public static` | `` | `put()` | No description |
`public static` | `` | `delete()` | No description |
`public static` | `` | `params()` | No description |
`public static` | `` | `session()` | No description |

## Details

at line 7

### `get()`

`public get($key, $default)`

#### Parameters

| `$key` |
| `$default` |

at line 8

### `getSession()`

`public getSession()`
at line 9

### `hasPreviousSession()`

`public hasPreviousSession()`
at line 10

### `hasSession()`

`public hasSession()`
at line 11

### `getClientIps()`

`public getClientIps()`
at line 12

### `getClientIp()`

`public getClientIp()`
at line 13

### `getScriptName()`

`public getScriptName()`
at line 14

### `getPathInfo()`

`public getPathInfo()`
at line 15

### `getBasePath()`

`public getBasePath()`
at line 16

### `getBaseUrl()`

`public getBaseUrl()`
at line 17

### `getScheme()`

`public getScheme()`
at line 18

### `getPort()`

`public getPort()`
at line 19

### `getUser()`

`public getUser()`
at line 20

### `getPassword()`

`public getPassword()`
at line 21

### `getUserInfo()`

`public getUserInfo()`
at line 22

### `getHttpHost()`

`public getHttpHost()`
at line 23

### `getRequestUri()`

`public getRequestUri()`
at line 24

### `getSchemeAndHttpHost()`

`public getSchemeAndHttpHost()`
at line 25

### `getUri()`

`public getUri()`
at line 26

### `getUriForPath()`

`public getUriForPath($path)`

#### Parameters

| `$path` |

at line 27

### `getRelativeUriForPath()`

`public getRelativeUriForPath($path)`

#### Parameters

| `$path` |

at line 28

### `getQueryString()`

`public getQueryString()`
at line 29

### `isSecure()`

`public isSecure()`
at line 30

### `getHost()`

`public getHost()`
at line 31

### `setMethod()`

`public setMethod($method)`

#### Parameters

| `$method` |

at line 32

### `getMethod()`

`public getMethod()`
at line 33

### `getRealMethod()`

`public getRealMethod()`
at line 34

### `getMimeType()`

`public getMimeType($format)`

#### Parameters

| `$format` |

at line 35

### `getMimeTypes()`

`public static getMimeTypes($format)`

#### Parameters

| `$format` |

at line 36

### `getFormat()`

`public getFormat($mimeType)`

#### Parameters

| `$mimeType` |

at line 37

### `setFormat()`

`public setFormat($format, $mimeTypes)`

#### Parameters

| `$format` |
| `$mimeTypes` |

at line 38

### `getRequestFormat()`

`public getRequestFormat($default)`

#### Parameters

| `$default` |

at line 39

### `setRequestFormat()`

`public setRequestFormat($format)`

#### Parameters

| `$format` |

at line 40

### `getContentType()`

`public getContentType()`
at line 41

### `setDefaultLocale()`

`public setDefaultLocale($locale)`

#### Parameters

| `$locale` |

at line 42

### `getDefaultLocale()`

`public getDefaultLocale()`
at line 43

### `setLocale()`

`public setLocale($locale)`

#### Parameters

| `$locale` |

at line 44

### `getLocale()`

`public getLocale()`
at line 45

### `isMethod()`

`public isMethod($method)`

#### Parameters

| `$method` |

at line 46

### `isMethodSafe()`

`public isMethodSafe()`
at line 47

### `isMethodIdempotent()`

`public isMethodIdempotent()`
at line 48

### `isMethodCacheable()`

`public isMethodCacheable()`
at line 49

### `getContent()`

`public getContent($asResource)`

#### Parameters

| `$asResource` |

at line 50

### `getETags()`

`public getETags()`
at line 51

### `isNoCache()`

`public isNoCache()`
at line 52

### `getPreferredLanguage()`

`public getPreferredLanguage()`
at line 53

### `getLanguages()`

`public getLanguages()`
at line 54

### `getCharsets()`

`public getCharsets()`
at line 55

### `getEncodings()`

`public getEncodings()`
at line 56

### `getAcceptableContentTypes()`

`public getAcceptableContentTypes()`
at line 57

### `isXmlHttpRequest()`

`public isXmlHttpRequest()`
at line 58

### `isFromTrustedProxy()`

`public isFromTrustedProxy()`
at line 59

### `post()`

`public static post()`
at line 60

### `put()`

`public static put()`
at line 61

### `delete()`

`public static delete()`
at line 62

### `params()`

`public static params()`
at line 63

### `session()`

`public static session()`

## Source code

    <?php

    	namespace App\Khan\Component\Router\Http\Interfaces;

    	interface Request {

    			public function get($key, $default);
    			public function getSession();
    			public function hasPreviousSession();
    			public function hasSession();
    			public function getClientIps();
    			public function getClientIp();
    			public function getScriptName();
    			public function getPathInfo();
    			public function getBasePath();
    			public function getBaseUrl();
    			public function getScheme();
    			public function getPort();
    			public function getUser();
    			public function getPassword();
    			public function getUserInfo();
    			public function getHttpHost();
    			public function getRequestUri();
    			public function getSchemeAndHttpHost();
    			public function getUri();
    			public function getUriForPath($path);
    			public function getRelativeUriForPath($path);
    			public function getQueryString();
    			public function isSecure();
    			public function getHost();
    			public function setMethod($method);
    			public function getMethod();
    			public function getRealMethod();
    			public function getMimeType($format);
    			public static function getMimeTypes($format);
    			public function getFormat($mimeType);
    			public function setFormat($format, $mimeTypes);
    			public function getRequestFormat($default);
    			public function setRequestFormat($format);
    			public function getContentType();
    			public function setDefaultLocale($locale);
    			public function getDefaultLocale();
    			public function setLocale($locale);
    			public function getLocale();
    			public function isMethod($method);
    			public function isMethodSafe(/* $andCacheable = true */);
    			public function isMethodIdempotent();
    			public function isMethodCacheable();
    			public function getContent($asResource);
    			public function getETags();
    			public function isNoCache();
    			public function getPreferredLanguage();
    			public function getLanguages();
    			public function getCharsets();
    			public function getEncodings();
    			public function getAcceptableContentTypes();
    			public function isXmlHttpRequest();
    			public function isFromTrustedProxy();
    			public static function post();
    			public static function put();
    			public static function delete();
    			public static function params();
    			public static function session();

    	}