<ruby id="bdb3f"></ruby>

    <p id="bdb3f"><cite id="bdb3f"></cite></p>

      <p id="bdb3f"><cite id="bdb3f"><th id="bdb3f"></th></cite></p><p id="bdb3f"></p>
        <p id="bdb3f"><cite id="bdb3f"></cite></p>

          <pre id="bdb3f"></pre>
          <pre id="bdb3f"><del id="bdb3f"><thead id="bdb3f"></thead></del></pre>

          <ruby id="bdb3f"><mark id="bdb3f"></mark></ruby><ruby id="bdb3f"></ruby>
          <pre id="bdb3f"><pre id="bdb3f"><mark id="bdb3f"></mark></pre></pre><output id="bdb3f"></output><p id="bdb3f"></p><p id="bdb3f"></p>

          <pre id="bdb3f"><del id="bdb3f"><progress id="bdb3f"></progress></del></pre>

                <ruby id="bdb3f"></ruby>

                ThinkChat2.0新版上線,更智能更精彩,支持會話、畫圖、視頻、閱讀、搜索等,送10W Token,即刻開啟你的AI之旅 廣告
                # QHttpResponseHeader Class Reference ## [[QtNetwork](index.htm) module] 該QHttpResponseHeader類包含HTTP響應頭信息。[More...](#details) 繼承[QHttpHeader](qhttpheader.html)。 ### Methods * `__init__ (self)` * `__init__ (self, QHttpResponseHeader?header)` * `__init__ (self, QString?str)` * `__init__ (self, int?code, QString?text?=?QString(), int?major?=?1, int?minor?=?1)` * `int majorVersion (self)` * `int minorVersion (self)` * `bool parseLine (self, QString?line, int?number)` * `QString reasonPhrase (self)` * `setStatusLine (self, int?code, QString?text?=?QString(), int?major?=?1, int?minor?=?1)` * `int statusCode (self)` * `QString toString (self)` * * * ## Detailed Description 該QHttpResponseHeader類包含HTTP響應頭信息。 這個類是由[QHttp](qhttp.html)類報告的報頭信息,客戶端從服務器接收。 HTTP響應有一個狀態代碼,表明該響應的狀態。此代碼是一個3位數的整數結果代碼(詳見至RFC 1945) 。除了狀態代碼,您還可以指定描述的代碼的原因( “理詞” ),一個人類可讀的文本。這個類可以讓你得到狀態碼和原因短語。 * * * ## Method Documentation ``` QHttpResponseHeader.__init__ (self) ``` 構造一個空的HTTP響應頭。 ``` QHttpResponseHeader.__init__ (self, QHttpResponseHeader?header) ``` 構造的副本_header_。 ``` QHttpResponseHeader.__init__ (self, QString?str) ``` 從字符串構造一個HTTP響應頭_str_。該字符串被解析和信息設置。該_str_應該由一個或多個的“ \ r \ n ”分隔行,第一行應該是狀態行(格式: HTTP版本,空間,狀態代碼,空間,原因短語) ;其馀各行應該有格式為key ,冒號,空格,值。 ``` QHttpResponseHeader.__init__ (self, int?code, QString?text?=?QString(), int?major?=?1, int?minor?=?1) ``` 構造一個[QHttpResponseHeader](qhttpresponseheader.html),狀態代碼設置為_code_,原因短語_text_和協議版本_majorVer_和_minorVer_。 這個函數是Qt 4.1中引入。 **See also** [statusCode](qhttpresponseheader.html#statusCode)( )[reasonPhrase](qhttpresponseheader.html#reasonPhrase)( )[majorVersion](qhttpresponseheader.html#majorVersion)()和[minorVersion](qhttpresponseheader.html#minorVersion)( ) 。 ``` int QHttpResponseHeader.majorVersion (self) ``` 從重新實現[QHttpHeader.majorVersion](qhttpheader.html#majorVersion)( ) 。 返回主協議版本的HTTP響應頭。 **See also** [minorVersion](qhttpresponseheader.html#minorVersion)( )[statusCode](qhttpresponseheader.html#statusCode)()和[reasonPhrase](qhttpresponseheader.html#reasonPhrase)( ) 。 ``` int QHttpResponseHeader.minorVersion (self) ``` 從重新實現[QHttpHeader.minorVersion](qhttpheader.html#minorVersion)( ) 。 返回未成年協議版本的HTTP響應頭。 **See also** [majorVersion](qhttpresponseheader.html#majorVersion)( )[statusCode](qhttpresponseheader.html#statusCode)()和[reasonPhrase](qhttpresponseheader.html#reasonPhrase)( ) 。 ``` bool QHttpResponseHeader.parseLine (self, QString?line, int?number) ``` ``` QString QHttpResponseHeader.reasonPhrase (self) ``` 返回原因短語HTTP響應頭。 **See also** [statusCode](qhttpresponseheader.html#statusCode)( )[majorVersion](qhttpresponseheader.html#majorVersion)()和[minorVersion](qhttpresponseheader.html#minorVersion)( ) 。 ``` QHttpResponseHeader.setStatusLine (self, int?code, QString?text?=?QString(), int?major?=?1, int?minor?=?1) ``` 設置狀態代碼_code_,原因短語_text_和協議版本_majorVer_和_minorVer_。 這個函數是Qt 4.1中引入。 **See also** [statusCode](qhttpresponseheader.html#statusCode)( )[reasonPhrase](qhttpresponseheader.html#reasonPhrase)( )[majorVersion](qhttpresponseheader.html#majorVersion)()和[minorVersion](qhttpresponseheader.html#minorVersion)( ) 。 ``` int QHttpResponseHeader.statusCode (self) ``` 返回的HTTP響應頭的狀態代碼。 **See also** [reasonPhrase](qhttpresponseheader.html#reasonPhrase)( )[majorVersion](qhttpresponseheader.html#majorVersion)()和[minorVersion](qhttpresponseheader.html#minorVersion)( ) 。 ``` QString QHttpResponseHeader.toString (self) ``` 從重新實現[QHttpHeader.toString](qhttpheader.html#toString)( ) 。
                  <ruby id="bdb3f"></ruby>

                  <p id="bdb3f"><cite id="bdb3f"></cite></p>

                    <p id="bdb3f"><cite id="bdb3f"><th id="bdb3f"></th></cite></p><p id="bdb3f"></p>
                      <p id="bdb3f"><cite id="bdb3f"></cite></p>

                        <pre id="bdb3f"></pre>
                        <pre id="bdb3f"><del id="bdb3f"><thead id="bdb3f"></thead></del></pre>

                        <ruby id="bdb3f"><mark id="bdb3f"></mark></ruby><ruby id="bdb3f"></ruby>
                        <pre id="bdb3f"><pre id="bdb3f"><mark id="bdb3f"></mark></pre></pre><output id="bdb3f"></output><p id="bdb3f"></p><p id="bdb3f"></p>

                        <pre id="bdb3f"><del id="bdb3f"><progress id="bdb3f"></progress></del></pre>

                              <ruby id="bdb3f"></ruby>

                              哎呀哎呀视频在线观看