|
TTKMusicPlayer
4.2.0.0
TTKMusicPlayer imitates Kugou UI, the music player uses of qmmp core library based on Qt for windows and linux
|
#include "qhttpconnection.h"#include <QTcpSocket>#include <QHostAddress>#include "http_parser.h"#include "qhttprequest.h"#include "qhttpresponse.h"Go to the source code of this file.
Classes | |
| class | QHttpConnectionPrivate |
| The class of the http connection private. More... | |
Macros | |
| #define | HAS_URL_FIELD(info, field) (info.field_set &(1 << (field))) |
| #define | GET_FIELD(data, info, field) QString::fromLatin1(data + info.field_data[field].off, info.field_data[field].len) |
| #define | CHECK_AND_GET_FIELD(data, info, field) (HAS_URL_FIELD(info, field) ? GET_FIELD(data, info, field) : QString()) |
Functions | |
| QUrl | createUrl (const char *urlData, const http_parser_url &urlInfo) |
| #define CHECK_AND_GET_FIELD | ( | data, | |
| info, | |||
| field | |||
| ) | (HAS_URL_FIELD(info, field) ? GET_FIELD(data, info, field) : QString()) |
Definition at line 204 of file qhttpconnection.cpp.
Referenced by createUrl().
| #define GET_FIELD | ( | data, | |
| info, | |||
| field | |||
| ) | QString::fromLatin1(data + info.field_data[field].off, info.field_data[field].len) |
Definition at line 201 of file qhttpconnection.cpp.
| #define HAS_URL_FIELD | ( | info, | |
| field | |||
| ) | (info.field_set &(1 << (field))) |
Definition at line 199 of file qhttpconnection.cpp.
Referenced by createUrl().
| QUrl createUrl | ( | const char * | urlData, |
| const http_parser_url & | urlInfo | ||
| ) |
Definition at line 207 of file qhttpconnection.cpp.
References CHECK_AND_GET_FIELD, http_parser_url::field_data, HAS_URL_FIELD, http_parser_url::len, http_parser_url::off, http_parser_url::port, UF_FRAGMENT, UF_HOST, UF_PATH, UF_PORT, UF_QUERY, UF_SCHEMA, and UF_USERINFO.
Referenced by QHttpConnectionPrivate::HeadersComplete().
1.8.8