# yii\web

> 55 classes, 6 interfaces of the yii\web namespace.

[API reference](/docs/api/index.md) › [yii](/docs/api/yii/index.md) › web

## Namespaces

| Namespace | Types |
| --- | --- |
| [`yii\web\client`](/docs/api/yii/web/client/index.md) | 1 |

## Classes

| Class | Summary |
| --- | --- |
| [`Action`](/docs/api/yii/web/action/index.md) | Base class for HTTP standalone actions dispatched without a hosting controller. |
| [`Application`](/docs/api/yii/web/application/index.md) | Application is the base class for all web application classes. |
| [`AssetBundle`](/docs/api/yii/web/assetbundle/index.md) | AssetBundle represents a collection of asset files, such as CSS, JS, images. |
| [`AssetConverter`](/docs/api/yii/web/assetconverter/index.md) | AssetConverter supports conversion of several popular formats into JS or CSS files. |
| [`AssetManager`](/docs/api/yii/web/assetmanager/index.md) | AssetManager manages asset bundle configuration and loading. |
| [`BadRequestHttpException`](/docs/api/yii/web/badrequesthttpexception/index.md) | BadRequestHttpException represents a "Bad Request" HTTP exception with status code 400. |
| [`CacheSession`](/docs/api/yii/web/cachesession/index.md) | CacheSession implements a session component using cache as storage medium. |
| [`CompositeUrlRule`](/docs/api/yii/web/compositeurlrule/index.md) abstract | CompositeUrlRule is the base class for URL rule classes that consist of multiple simpler rules. |
| [`ConflictHttpException`](/docs/api/yii/web/conflicthttpexception/index.md) | ConflictHttpException represents a "Conflict" HTTP exception with status code 409. |
| [`Controller`](/docs/api/yii/web/controller/index.md) | Controller is the base class of web controllers. |
| [`Cookie`](/docs/api/yii/web/cookie/index.md) | Cookie represents information related with a cookie, such as [`$name`](/docs/api/yii/web/cookie/index.md#property-name), [`$value`](/docs/api/yii/web/cookie/index.md#property-value), [`$domain`](/docs/api/yii/web/cookie/index.md#property-domain), etc. |
| [`CookieCollection`](/docs/api/yii/web/cookiecollection/index.md) | CookieCollection maintains the cookies available in the current request. |
| [`DbSession`](/docs/api/yii/web/dbsession/index.md) | DbSession extends [`Session`](/docs/api/yii/web/session/index.md) by using database as session data storage. |
| [`ErrorAction`](/docs/api/yii/web/erroraction/index.md) | ErrorAction displays application errors using a specified view. |
| [`ErrorHandler`](/docs/api/yii/web/errorhandler/index.md) | ErrorHandler handles uncaught PHP errors and exceptions. |
| [`ErrorHandlerRenderEvent`](/docs/api/yii/web/errorhandlerrenderevent/index.md) | Represents events triggered by [`ErrorHandler`](/docs/api/yii/web/errorhandler/index.md). |
| [`ForbiddenHttpException`](/docs/api/yii/web/forbiddenhttpexception/index.md) | ForbiddenHttpException represents a "Forbidden" HTTP exception with status code 403. |
| [`GoneHttpException`](/docs/api/yii/web/gonehttpexception/index.md) | GoneHttpException represents a "Gone" HTTP exception with status code 410. |
| [`GroupUrlRule`](/docs/api/yii/web/groupurlrule/index.md) | GroupUrlRule represents a collection of URL rules sharing the same prefix in their patterns and routes. |
| [`HeaderCollection`](/docs/api/yii/web/headercollection/index.md) | HeaderCollection is used by [`Response`](/docs/api/yii/web/response/index.md) to maintain the currently registered HTTP headers. |
| [`HeadersAlreadySentException`](/docs/api/yii/web/headersalreadysentexception/index.md) | HeadersAlreadySentException represents an exception caused by any headers that were already sent before web response was sent. |
| [`HtmlResponseFormatter`](/docs/api/yii/web/htmlresponseformatter/index.md) | HtmlResponseFormatter formats the given data into an HTML response content. |
| [`HttpException`](/docs/api/yii/web/httpexception/index.md) | HttpException represents an exception caused by an improper request of the end-user. |
| [`JqueryAsset`](/docs/api/yii/web/jqueryasset/index.md) | This asset bundle provides the [jQuery](https://jquery.com/) JavaScript library. |
| [`JsExpression`](/docs/api/yii/web/jsexpression/index.md) | `JsExpression` marks a string as a JavaScript expression. |
| [`JsonParser`](/docs/api/yii/web/jsonparser/index.md) | Parses a raw HTTP request using [`Json::decode()`](/docs/api/yii/helpers/basejson/index.md#method-decode). |
| [`JsonResponseFormatter`](/docs/api/yii/web/jsonresponseformatter/index.md) | JsonResponseFormatter formats the given data into a JSON or JSONP response content. |
| [`Link`](/docs/api/yii/web/link/index.md) | Link represents a link object as defined in [JSON Hypermedia API Language](https://tools.ietf.org/html/draft-kelly-json-hal-03). |
| [`MethodNotAllowedHttpException`](/docs/api/yii/web/methodnotallowedhttpexception/index.md) | MethodNotAllowedHttpException represents a "Method Not Allowed" HTTP exception with status code 405. |
| [`MultiFieldSession`](/docs/api/yii/web/multifieldsession/index.md) abstract | MultiFieldSession is the base class for session storage implementations with multi-field data storage support. |
| [`MultipartFormDataParser`](/docs/api/yii/web/multipartformdataparser/index.md) | MultipartFormDataParser parses content encoded as 'multipart/form-data'. |
| [`NotAcceptableHttpException`](/docs/api/yii/web/notacceptablehttpexception/index.md) | NotAcceptableHttpException represents a "Not Acceptable" HTTP exception with status code 406. |
| [`NotFoundHttpException`](/docs/api/yii/web/notfoundhttpexception/index.md) | NotFoundHttpException represents a "Not Found" HTTP exception with status code 404. |
| [`RangeNotSatisfiableHttpException`](/docs/api/yii/web/rangenotsatisfiablehttpexception/index.md) | RangeNotSatisfiableHttpException represents an exception caused by an improper request of the end-user. |
| [`Request`](/docs/api/yii/web/request/index.md) | The web Request class represents an HTTP request. |
| [`Response`](/docs/api/yii/web/response/index.md) | The web Response class represents an HTTP response. |
| [`ServerErrorHttpException`](/docs/api/yii/web/servererrorhttpexception/index.md) | ServerErrorHttpException represents an "Internal Server Error" HTTP exception with status code 500. |
| [`Session`](/docs/api/yii/web/session/index.md) | Session provides session data management and the related configurations. |
| [`SessionHandler`](/docs/api/yii/web/sessionhandler/index.md) | SessionHandler implements an [`SessionHandlerInterface`](https://www.php.net/manual/en/class.sessionhandlerinterface.php) for handling [`Session`](/docs/api/yii/web/session/index.md) with custom session storage. |
| [`SessionIterator`](/docs/api/yii/web/sessioniterator/index.md) | SessionIterator implements an [iterator](https://www.php.net/manual/en/class.iterator.php) for traversing session variables managed by [`Session`](/docs/api/yii/web/session/index.md). |
| [`TooManyRequestsHttpException`](/docs/api/yii/web/toomanyrequestshttpexception/index.md) | TooManyRequestsHttpException represents a "Too Many Requests" HTTP exception with status code 429. |
| [`UnauthorizedHttpException`](/docs/api/yii/web/unauthorizedhttpexception/index.md) | UnauthorizedHttpException represents an "Unauthorized" HTTP exception with status code 401. |
| [`UnprocessableEntityHttpException`](/docs/api/yii/web/unprocessableentityhttpexception/index.md) | UnprocessableEntityHttpException represents an "Unprocessable Entity" HTTP exception with status code 422. |
| [`UnsupportedMediaTypeHttpException`](/docs/api/yii/web/unsupportedmediatypehttpexception/index.md) | UnsupportedMediaTypeHttpException represents an "Unsupported Media Type" HTTP exception with status code 415. |
| [`UploadedFile`](/docs/api/yii/web/uploadedfile/index.md) | UploadedFile represents the information for an uploaded file. |
| [`UrlManager`](/docs/api/yii/web/urlmanager/index.md) | UrlManager handles HTTP request parsing and creation of URLs based on a set of rules. |
| [`UrlNormalizer`](/docs/api/yii/web/urlnormalizer/index.md) | UrlNormalizer normalizes URLs for [`UrlManager`](/docs/api/yii/web/urlmanager/index.md) and [`UrlRule`](/docs/api/yii/web/urlrule/index.md). |
| [`UrlNormalizerRedirectException`](/docs/api/yii/web/urlnormalizerredirectexception/index.md) | UrlNormalizerRedirectException represents an information for redirection which should be performed during the URL normalization. |
| [`UrlRule`](/docs/api/yii/web/urlrule/index.md) | UrlRule represents a rule used by [`UrlManager`](/docs/api/yii/web/urlmanager/index.md) for parsing and generating URLs. |
| [`User`](/docs/api/yii/web/user/index.md) | User is the class for the `user` application component that manages the user authentication status. |
| [`UserEvent`](/docs/api/yii/web/userevent/index.md) | This event class is used for Events triggered by the [`User`](/docs/api/yii/web/user/index.md) class. |
| [`View`](/docs/api/yii/web/view/index.md) | View represents a view object in the MVC pattern. |
| [`ViewAction`](/docs/api/yii/web/viewaction/index.md) | ViewAction represents an action that displays a view according to a user-specified parameter. |
| [`XmlResponseFormatter`](/docs/api/yii/web/xmlresponseformatter/index.md) | XmlResponseFormatter formats the given data into an XML response content. |
| [`YiiAsset`](/docs/api/yii/web/yiiasset/index.md) | This asset bundle provides the base JavaScript files for the Yii Framework. |

## Interfaces

| Interface | Summary |
| --- | --- |
| [`AssetConverterInterface`](/docs/api/yii/web/assetconverterinterface/index.md) | The AssetConverterInterface must be implemented by asset converter classes. |
| [`IdentityInterface`](/docs/api/yii/web/identityinterface/index.md) | IdentityInterface is the interface that should be implemented by a class providing identity information. |
| [`Linkable`](/docs/api/yii/web/linkable/index.md) | Linkable is the interface that should be implemented by classes that typically represent locatable resources. |
| [`RequestParserInterface`](/docs/api/yii/web/requestparserinterface/index.md) | Interface for classes that parse the raw request body into a parameters array. |
| [`ResponseFormatterInterface`](/docs/api/yii/web/responseformatterinterface/index.md) | ResponseFormatterInterface specifies the interface needed to format a response before it is sent out. |
| [`UrlRuleInterface`](/docs/api/yii/web/urlruleinterface/index.md) | UrlRuleInterface is the interface that should be implemented by URL rule classes. |