MCPcopy Create free account
hub / github.com/KikoPlayProject/KikoPlay / toByteArray

Method toByteArray

LANServer/httpserver/httpcookie.cpp:105–143  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

103}
104
105QByteArray HttpCookie::toByteArray() const
106{
107 QByteArray buffer(name);
108 buffer.append('=');
109 buffer.append(value);
110 if (!comment.isEmpty())
111 {
112 buffer.append("; Comment=");
113 buffer.append(comment);
114 }
115 if (!domain.isEmpty())
116 {
117 buffer.append("; Domain=");
118 buffer.append(domain);
119 }
120 if (maxAge!=0)
121 {
122 buffer.append("; Max-Age=");
123 buffer.append(QByteArray::number(maxAge));
124 }
125 if (!path.isEmpty())
126 {
127 buffer.append("; Path=");
128 buffer.append(path);
129 }
130 if (secure) {
131 buffer.append("; Secure");
132 }
133 if (httpOnly) {
134 buffer.append("; HttpOnly");
135 }
136 if (!sameSite.isEmpty()) {
137 buffer.append("; SameSite=");
138 buffer.append(sameSite);
139 }
140 buffer.append("; Version=");
141 buffer.append(QByteArray::number(version));
142 return buffer;
143}
144
145void HttpCookie::setName(const QByteArray name)
146{

Callers 15

tryLoadTorrentContentMethod · 0.80
getSingleAnimeMethod · 0.80
fetchAnimesMethod · 0.80
loadCrImagesMethod · 0.80
getAnimeImageDataMethod · 0.80
fetchCapturesMethod · 0.80
AnimeLibraryMethod · 0.80
DLNADiscoverMethod · 0.80
LuaTableViewerMethod · 0.80
AnimeBatchActionMethod · 0.80
PoolManagerMethod · 0.80
initUIMethod · 0.80

Calls 2

appendMethod · 0.45
isEmptyMethod · 0.45

Tested by

no test coverage detected