QHttpRequestHeader(3qt)
π QHttpRequestHeader β the girlies' guide to HTTP request headers π
okay so bestie, this is QHttpRequestHeader(3qt) β a Qt 3 man page, and yes it's old old, but we're gonna make it make sense. sit down, grab a strawberry π, and let's get into it.
β¨ NAME β¨
QHttpRequestHeader β request header information for HTTP π¦
β¨ SYNOPSIS β¨
#include <qhttp.h>
Inherits QHttpHeader. it's giving family tree, it's giving inheritance, we love that for it π
πΈ Public Members πΈ
QHttpRequestHeader ()
QHttpRequestHeader ( const QString & method, const QString & path, int
majorVer = 1, int minorVer = 1 )
QHttpRequestHeader ( const QHttpRequestHeader & header )
QHttpRequestHeader ( const QString & str )
void setRequest ( const QString & method, const QString & path, int
majorVer = 1, int minorVer = 1 )
QString method () const
QString path () const
virtual int majorVersion () const
virtual int minorVersion () const
π Important Inherited Members π
QString value ( const QString & key ) const
void setValue ( const QString & key, const QString & value )
β¨ DESCRIPTION β¨
The QHttpRequestHeader class contains request header information for HTTP. periodt. π
This class is used in the QHttp class to report the header information if the client requests something from the server. so it's the little messenger girlie running back and forth between you and the server, no cap πβοΈπ¨
HTTP requests have a method which describes the request's action. The most common requests are "GET" and "POST". (iykyk β¨) In addition to the request method the header also includes a request-URI to specify the location for the method to use.
The method, request-URI and protocol-version can be set using a constructor or later using setRequest(). The values can be obtained using method(), path(), majorVersion() and minorVersion(). it's giving full set of getters and setters, we're so organized π
This class is a QHttpHeader subclass so that class's functions, e.g. setValue(), value(), etc. are also available. yes bestie, the inherited powers are there, use them π«Ά
See also QHttpResponseHeader, QHttp, and Input/Output and Networking.
β¨ MEMBER FUNCTION DOCUMENTATION β¨
π QHttpRequestHeader::QHttpRequestHeader ()
Constructs an empty HTTP request header. blank canvas energy, main character before the character development π β¨
π QHttpRequestHeader::QHttpRequestHeader ( const QString & method, const QString & path, int majorVer = 1, int minorVer = 1 )
Constructs a HTTP request header for the method method, the request-URI path path and the protocol-version majorVer majorVer and minorVer minorVer. everything in one go, slay π
π QHttpRequestHeader::QHttpRequestHeader ( const QHttpRequestHeader & header )
Constructs a copy of header header. twin flame behaviour, fr fr π
π QHttpRequestHeader::QHttpRequestHeader ( const QString & str )
Constructs a HTTP request header from the string str str. The str str should consist of one or more "\r\n" delimited lines; the first line should be the request-line (format: method, space, request-URI, space HTTP-version); each of the remaining lines should have the format key, colon, space, value. so like, follow the format bestie, the parser is not gonna hold your hand on this one π
π int QHttpRequestHeader::majorVersion () const [virtual]
Returns the major protocol-version of the HTTP request header. π
See also minorVersion(), method(), path(), and setRequest().
Reimplemented from QHttpHeader.
π QString QHttpRequestHeader::method () const
Returns the method of the HTTP request header. (yes, the "GET" / "POST" situation π¦)
See also path(), majorVersion(), minorVersion(), and setRequest().
π int QHttpRequestHeader::minorVersion () const [virtual]
Returns the minor protocol-version of the HTTP request header. the little sibling of majorVersion(), iconic β¨
See also majorVersion(), method(), path(), and setRequest().
Reimplemented from QHttpHeader.
π QString QHttpRequestHeader::path () const
Returns the request-URI of the HTTP request header. the where to the method's what, we love a duo π«Ά
See also method(), majorVersion(), minorVersion(), and setRequest().
π void QHttpRequestHeader::setRequest ( const QString & method, const QString & path, int majorVer = 1, int minorVer = 1 )
This function sets the request method to method method, the request-URI to path path and the protocol-version to majorVer majorVer and minorVer minorVer. one call, whole vibe reset π
See also method(), path(), majorVersion(), and minorVersion().
π void QHttpHeader::setValue ( const QString & key, const QString & value )
Sets the value of the entry with the key key to value value.
If no entry with key key exists, a new entry with the given key key and value value is created. If an entry with the key key already exists, its value is discarded and replaced with the given value value. ok so it's not adding, it's replacing β the old value gets ghosted, no warning, no nothing π
See also value(), hasKey(), and removeValue().
Example: network/archivesearch/archivedialog.ui.h.
π QString QHttpHeader::value ( const QString & key ) const
Returns the value for the entry with the given key key. If no entry has this key key, an empty string is returned. so if you get nothing back, that's not a bug bestie, that's just an empty string π
See also setValue(), removeValue(), hasKey(), and keys().
β¨ SEE ALSO β¨
β¨ COPYRIGHT β¨
Copyright 1992-2007 Trolltech ASA, http://www.trolltech.com. See the license file included in the distribution for a complete license statement. π
β¨ AUTHOR β¨
Generated automatically from the source code. (no human author to thank, just vibes and a script π€β¨)
β¨ BUGS β¨
If you find a bug in Qt, please report it as described in http://doc.trolltech.com/bughowto.html. Good bug reports help us to help you. Thank you. π«Ά (genuinely though β good bug reports are so appreciated, bestie, don't be shy)
The definitive Qt documentation is provided in HTML format; it is located at $QTDIR/doc/html and can be read using Qt Assistant or with a web browser. This man page is provided as a convenience for those users who prefer man pages, although this format is not officially supported by Trolltech. so yes it's the β¨unofficialβ¨ edition, the man page is giving side quest πΈ
If you find errors in this manual page, please report them to qt-bugs@trolltech.com. Please include the name of the manual page (qhttprequestheader.3qt) and the Qt version (3.3.8). π
okay that's the whole page!! go forth and build your HTTP request headers, you absolute icon π
Trolltech AS Β· 2 February 2007 Β· Qt 3.3.8 Β· QHttpRequestHeader(3qt) β mwah, thanks for reading bestie, ily, take care of your headers πππ¦β¨
π¦ where this page comes from
- fedora 43: qt3-devel-docs 3.3.8b-102.fc43 Β· QPL-1.0 OR GPL-2.0-only OR GPL-3.0-only
- fedora 44: qt3-devel-docs 3.3.8b-103.fc44 Β· QPL-1.0 OR GPL-2.0-only OR GPL-3.0-only
- Copyright 1992-2007 Trolltech ASA. All rights reserved. See the
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms