Qt
Internal/Contributor docs for the Qt SDK. <b>Note:</b> These are NOT official API docs; those are found <a href='https://doc.qt.io/'>here</a>.
Loading...
Searching...
No Matches
HeaderName Struct Reference
+ Collaboration diagram for HeaderName:

Public Member Functions

 HeaderName (QHttpHeaders::WellKnownHeader name)
 
 HeaderName (QAnyStringView name)
 
QByteArrayView asView () const noexcept
 
QByteArray asByteArray () const noexcept
 

Static Public Member Functions

static std::optional< QHttpHeaders::WellKnownHeadertoWellKnownHeader (QByteArrayView name) noexcept
 

Friends

bool comparesEqual (const HeaderName &lhs, const HeaderName &rhs) noexcept
 

Detailed Description

Definition at line 695 of file qhttpheaders.cpp.

Constructor & Destructor Documentation

◆ HeaderName() [1/2]

HeaderName::HeaderName ( QHttpHeaders::WellKnownHeader name)
inlineexplicit

Definition at line 697 of file qhttpheaders.cpp.

◆ HeaderName() [2/2]

HeaderName::HeaderName ( QAnyStringView name)
inlineexplicit

Definition at line 701 of file qhttpheaders.cpp.

References normalizedName(), and toWellKnownHeader().

+ Here is the call graph for this function:

Member Function Documentation

◆ asByteArray()

QByteArray HeaderName::asByteArray ( ) const
inlinenoexcept

Definition at line 737 of file qhttpheaders.cpp.

References arg, QByteArray::fromRawData(), headerNames, qToUnderlying(), and view.

+ Here is the call graph for this function:

◆ asView()

QByteArrayView HeaderName::asView ( ) const
inlinenoexcept

Definition at line 724 of file qhttpheaders.cpp.

References arg, headerNames, and qToUnderlying().

+ Here is the call graph for this function:

◆ toWellKnownHeader()

static std::optional< QHttpHeaders::WellKnownHeader > HeaderName::toWellKnownHeader ( QByteArrayView name)
inlinestaticnoexcept

Definition at line 712 of file qhttpheaders.cpp.

References headerNames, and orderedHeaderNameIndexes.

Referenced by HeaderName().

+ Here is the caller graph for this function:

Friends And Related Symbol Documentation

◆ comparesEqual

bool comparesEqual ( const HeaderName & lhs,
const HeaderName & rhs )
friend

Definition at line 756 of file qhttpheaders.cpp.


The documentation for this struct was generated from the following file: