.. _object_HttpServerResponse: :index:`HttpServerResponse` --------------------------- Description *********** The HttpServerResponse object represents a HTTP response sent from a :ref:`HttpServer ` object back to the client. Overview ******** Properties ++++++++++ .. hlist:: :columns: 1 * :ref:`content ` * :ref:`headers ` * :ref:`mimeType ` * :ref:`statusCode ` Enumerations ++++++++++++ .. hlist:: :columns: 1 * :ref:`StatusCode ` Properties ********** .. _property_HttpServerResponse_content: .. _signal_HttpServerResponse_contentChanged: .. index:: single: content content +++++++ This property holds the content which to serve in the response. :**› Type**: :ref:`HttpContent ` :**› Signal**: contentChanged() :**› Attributes**: Writable .. _property_HttpServerResponse_headers: .. _signal_HttpServerResponse_headersChanged: .. index:: single: headers headers +++++++ This property holds the headers which to send with the response. :**› Type**: Map :**› Signal**: headersChanged() :**› Attributes**: Writable .. _property_HttpServerResponse_mimeType: .. _signal_HttpServerResponse_mimeTypeChanged: .. index:: single: mimeType mimeType ++++++++ This property holds the MIME type of the response data. :**› Type**: String :**› Signal**: mimeTypeChanged() :**› Attributes**: Writable .. _property_HttpServerResponse_statusCode: .. _signal_HttpServerResponse_statusCodeChanged: .. index:: single: statusCode statusCode ++++++++++ This property holds the HTTP status code of the response such as 200, 404 etc. See the :ref:`StatusCode ` enumeration for details. :**› Type**: :ref:`StatusCode ` :**› Default**: :ref:`HttpServerResponse.OK ` :**› Signal**: statusCodeChanged() :**› Attributes**: Writable Enumerations ************ .. _enum_HttpServerResponse_StatusCode: .. index:: single: StatusCode StatusCode ++++++++++ This enumeration describes all available Hypertext Transfer Protocol (HTTP) response status codes. Status codes are issued by a server in response to a client's request made to the server. .. index:: single: HttpServerResponse.Continue .. index:: single: HttpServerResponse.SwitchingProtocols .. index:: single: HttpServerResponse.Processing .. index:: single: HttpServerResponse.OK .. index:: single: HttpServerResponse.Created .. index:: single: HttpServerResponse.Accepted .. index:: single: HttpServerResponse.NonAuthoritativeInformation .. index:: single: HttpServerResponse.NoContent .. index:: single: HttpServerResponse.ResetContent .. index:: single: HttpServerResponse.PartialContent .. index:: single: HttpServerResponse.MultiStatus .. index:: single: HttpServerResponse.AlreadyReported .. index:: single: HttpServerResponse.IMUsed .. index:: single: HttpServerResponse.MultipleChoices .. index:: single: HttpServerResponse.MovedPermanently .. index:: single: HttpServerResponse.Found .. index:: single: HttpServerResponse.SeeOther .. index:: single: HttpServerResponse.NotModified .. index:: single: HttpServerResponse.UseProxy .. index:: single: HttpServerResponse.TemporaryRedirect .. index:: single: HttpServerResponse.PermanentRedirect .. index:: single: HttpServerResponse.BadRequest .. index:: single: HttpServerResponse.Unauthorized .. index:: single: HttpServerResponse.PaymentRequired .. index:: single: HttpServerResponse.Forbidden .. index:: single: HttpServerResponse.NotFound .. index:: single: HttpServerResponse.MethodNotAllowed .. index:: single: HttpServerResponse.NotAcceptable .. index:: single: HttpServerResponse.ProxyAuthenticationRequired .. index:: single: HttpServerResponse.RequestTimeout .. index:: single: HttpServerResponse.Conflict .. index:: single: HttpServerResponse.Gone .. index:: single: HttpServerResponse.LengthRequired .. index:: single: HttpServerResponse.PreconditionFailed .. index:: single: HttpServerResponse.RequestEntityTooLarge .. index:: single: HttpServerResponse.URITooLong .. index:: single: HttpServerResponse.UnsupportedMediaType .. index:: single: HttpServerResponse.RequestedRangeNotSatisfiable .. index:: single: HttpServerResponse.ExpectationFailed .. index:: single: HttpServerResponse.PolicyNotFulfilled .. index:: single: HttpServerResponse.MisdirectedRequest .. index:: single: HttpServerResponse.UnprocessableEntity .. index:: single: HttpServerResponse.Locked .. index:: single: HttpServerResponse.FailedDependency .. index:: single: HttpServerResponse.UpgradeRequired .. index:: single: HttpServerResponse.PreconditionRequired .. index:: single: HttpServerResponse.TooManyRequests .. index:: single: HttpServerResponse.RequestHeaderFieldsTooLarge .. index:: single: HttpServerResponse.UnavailableForLegalReasons .. index:: single: HttpServerResponse.InternalServerError .. index:: single: HttpServerResponse.NotImplemented .. index:: single: HttpServerResponse.BadGateway .. index:: single: HttpServerResponse.ServiceUnavailable .. index:: single: HttpServerResponse.GatewayTimeout .. index:: single: HttpServerResponse.HttpVersionNotSupported .. index:: single: HttpServerResponse.VariantAlsoNegotiates .. index:: single: HttpServerResponse.InsufficientStorage .. index:: single: HttpServerResponse.LoopDetected .. index:: single: HttpServerResponse.NotExtended .. index:: single: HttpServerResponse.NetworkAuthenticationRequired .. list-table:: :widths: auto :header-rows: 1 * - Name - Value - Description .. _enumitem_HttpServerResponse_Continue: * - ``HttpServerResponse.Continue`` - ``100`` - See `details on status code 100 `_ . .. _enumitem_HttpServerResponse_SwitchingProtocols: * - ``HttpServerResponse.SwitchingProtocols`` - ``101`` - See `details on status code 101 `_ . .. _enumitem_HttpServerResponse_Processing: * - ``HttpServerResponse.Processing`` - ``102`` - See `details on status code 102 `_ . .. _enumitem_HttpServerResponse_OK: * - ``HttpServerResponse.OK`` - ``200`` - See `details on status code 200 `_ . .. _enumitem_HttpServerResponse_Created: * - ``HttpServerResponse.Created`` - ``201`` - See `details on status code 201 `_ . .. _enumitem_HttpServerResponse_Accepted: * - ``HttpServerResponse.Accepted`` - ``202`` - See `details on status code 202 `_ . .. _enumitem_HttpServerResponse_NonAuthoritativeInformation: * - ``HttpServerResponse.NonAuthoritativeInformation`` - ``203`` - See `details on status code 203 `_ . .. _enumitem_HttpServerResponse_NoContent: * - ``HttpServerResponse.NoContent`` - ``204`` - See `details on status code 204 `_ . .. _enumitem_HttpServerResponse_ResetContent: * - ``HttpServerResponse.ResetContent`` - ``205`` - See `details on status code 205 `_ . .. _enumitem_HttpServerResponse_PartialContent: * - ``HttpServerResponse.PartialContent`` - ``206`` - See `details on status code 206 `_ . .. _enumitem_HttpServerResponse_MultiStatus: * - ``HttpServerResponse.MultiStatus`` - ``207`` - See `details on status code 207 `_ . .. _enumitem_HttpServerResponse_AlreadyReported: * - ``HttpServerResponse.AlreadyReported`` - ``208`` - See `details on status code 208 `_ . .. _enumitem_HttpServerResponse_IMUsed: * - ``HttpServerResponse.IMUsed`` - ``226`` - See `details on status code 226 `_ . .. _enumitem_HttpServerResponse_MultipleChoices: * - ``HttpServerResponse.MultipleChoices`` - ``300`` - See `details on status code 300 `_ . .. _enumitem_HttpServerResponse_MovedPermanently: * - ``HttpServerResponse.MovedPermanently`` - ``301`` - See `details on status code 301 `_ . .. _enumitem_HttpServerResponse_Found: * - ``HttpServerResponse.Found`` - ``302`` - See `details on status code 302 `_ . .. _enumitem_HttpServerResponse_SeeOther: * - ``HttpServerResponse.SeeOther`` - ``303`` - See `details on status code 303 `_ . .. _enumitem_HttpServerResponse_NotModified: * - ``HttpServerResponse.NotModified`` - ``304`` - See `details on status code 304 `_ . .. _enumitem_HttpServerResponse_UseProxy: * - ``HttpServerResponse.UseProxy`` - ``305`` - See `details on status code 305 `_ . .. _enumitem_HttpServerResponse_TemporaryRedirect: * - ``HttpServerResponse.TemporaryRedirect`` - ``307`` - See `details on status code 307 `_ . .. _enumitem_HttpServerResponse_PermanentRedirect: * - ``HttpServerResponse.PermanentRedirect`` - ``308`` - See `details on status code 308 `_ . .. _enumitem_HttpServerResponse_BadRequest: * - ``HttpServerResponse.BadRequest`` - ``400`` - See `details on status code 400 `_ . .. _enumitem_HttpServerResponse_Unauthorized: * - ``HttpServerResponse.Unauthorized`` - ``401`` - See `details on status code 401 `_ . .. _enumitem_HttpServerResponse_PaymentRequired: * - ``HttpServerResponse.PaymentRequired`` - ``402`` - See `details on status code 402 `_ . .. _enumitem_HttpServerResponse_Forbidden: * - ``HttpServerResponse.Forbidden`` - ``403`` - See `details on status code 403 `_ . .. _enumitem_HttpServerResponse_NotFound: * - ``HttpServerResponse.NotFound`` - ``404`` - See `details on status code 404 `_ . .. _enumitem_HttpServerResponse_MethodNotAllowed: * - ``HttpServerResponse.MethodNotAllowed`` - ``405`` - See `details on status code 405 `_ . .. _enumitem_HttpServerResponse_NotAcceptable: * - ``HttpServerResponse.NotAcceptable`` - ``406`` - See `details on status code 406 `_ . .. _enumitem_HttpServerResponse_ProxyAuthenticationRequired: * - ``HttpServerResponse.ProxyAuthenticationRequired`` - ``407`` - See `details on status code 407 `_ . .. _enumitem_HttpServerResponse_RequestTimeout: * - ``HttpServerResponse.RequestTimeout`` - ``408`` - See `details on status code 408 `_ . .. _enumitem_HttpServerResponse_Conflict: * - ``HttpServerResponse.Conflict`` - ``409`` - See `details on status code 409 `_ . .. _enumitem_HttpServerResponse_Gone: * - ``HttpServerResponse.Gone`` - ``410`` - See `details on status code 410 `_ . .. _enumitem_HttpServerResponse_LengthRequired: * - ``HttpServerResponse.LengthRequired`` - ``411`` - See `details on status code 411 `_ . .. _enumitem_HttpServerResponse_PreconditionFailed: * - ``HttpServerResponse.PreconditionFailed`` - ``412`` - See `details on status code 412 `_ . .. _enumitem_HttpServerResponse_RequestEntityTooLarge: * - ``HttpServerResponse.RequestEntityTooLarge`` - ``413`` - See `details on status code 413 `_ . .. _enumitem_HttpServerResponse_URITooLong: * - ``HttpServerResponse.URITooLong`` - ``414`` - See `details on status code 414 `_ . .. _enumitem_HttpServerResponse_UnsupportedMediaType: * - ``HttpServerResponse.UnsupportedMediaType`` - ``415`` - See `details on status code 415 `_ . .. _enumitem_HttpServerResponse_RequestedRangeNotSatisfiable: * - ``HttpServerResponse.RequestedRangeNotSatisfiable`` - ``416`` - See `details on status code 416 `_ . .. _enumitem_HttpServerResponse_ExpectationFailed: * - ``HttpServerResponse.ExpectationFailed`` - ``417`` - See `details on status code 417 `_ . .. _enumitem_HttpServerResponse_PolicyNotFulfilled: * - ``HttpServerResponse.PolicyNotFulfilled`` - ``420`` - See `details on status code 420 `_ . .. _enumitem_HttpServerResponse_MisdirectedRequest: * - ``HttpServerResponse.MisdirectedRequest`` - ``421`` - See `details on status code 421 `_ . .. _enumitem_HttpServerResponse_UnprocessableEntity: * - ``HttpServerResponse.UnprocessableEntity`` - ``422`` - See `details on status code 422 `_ . .. _enumitem_HttpServerResponse_Locked: * - ``HttpServerResponse.Locked`` - ``423`` - See `details on status code 423 `_ . .. _enumitem_HttpServerResponse_FailedDependency: * - ``HttpServerResponse.FailedDependency`` - ``424`` - See `details on status code 424 `_ . .. _enumitem_HttpServerResponse_UpgradeRequired: * - ``HttpServerResponse.UpgradeRequired`` - ``426`` - See `details on status code 426 `_ . .. _enumitem_HttpServerResponse_PreconditionRequired: * - ``HttpServerResponse.PreconditionRequired`` - ``428`` - See `details on status code 428 `_ . .. _enumitem_HttpServerResponse_TooManyRequests: * - ``HttpServerResponse.TooManyRequests`` - ``429`` - See `details on status code 429 `_ . .. _enumitem_HttpServerResponse_RequestHeaderFieldsTooLarge: * - ``HttpServerResponse.RequestHeaderFieldsTooLarge`` - ``431`` - See `details on status code 431 `_ . .. _enumitem_HttpServerResponse_UnavailableForLegalReasons: * - ``HttpServerResponse.UnavailableForLegalReasons`` - ``451`` - See `details on status code 451 `_ . .. _enumitem_HttpServerResponse_InternalServerError: * - ``HttpServerResponse.InternalServerError`` - ``500`` - See `details on status code 500 `_ . .. _enumitem_HttpServerResponse_NotImplemented: * - ``HttpServerResponse.NotImplemented`` - ``501`` - See `details on status code 501 `_ . .. _enumitem_HttpServerResponse_BadGateway: * - ``HttpServerResponse.BadGateway`` - ``502`` - See `details on status code 502 `_ . .. _enumitem_HttpServerResponse_ServiceUnavailable: * - ``HttpServerResponse.ServiceUnavailable`` - ``503`` - See `details on status code 503 `_ . .. _enumitem_HttpServerResponse_GatewayTimeout: * - ``HttpServerResponse.GatewayTimeout`` - ``504`` - See `details on status code 504 `_ . .. _enumitem_HttpServerResponse_HttpVersionNotSupported: * - ``HttpServerResponse.HttpVersionNotSupported`` - ``505`` - See `details on status code 505 `_ . .. _enumitem_HttpServerResponse_VariantAlsoNegotiates: * - ``HttpServerResponse.VariantAlsoNegotiates`` - ``506`` - See `details on status code 506 `_ . .. _enumitem_HttpServerResponse_InsufficientStorage: * - ``HttpServerResponse.InsufficientStorage`` - ``507`` - See `details on status code 507 `_ . .. _enumitem_HttpServerResponse_LoopDetected: * - ``HttpServerResponse.LoopDetected`` - ``508`` - See `details on status code 508 `_ . .. _enumitem_HttpServerResponse_NotExtended: * - ``HttpServerResponse.NotExtended`` - ``510`` - See `details on status code 510 `_ . .. _enumitem_HttpServerResponse_NetworkAuthenticationRequired: * - ``HttpServerResponse.NetworkAuthenticationRequired`` - ``511`` - See `details on status code 511 `_ .