#include "common.h"
#include "lib/header.h"
Go to the source code of this file.
Enumerations | |
| enum | xfeature_t { FEATURES_DOWNLOADS, FEATURES_UPLOADS, FEATURES_CONNECTIONS, NUM_FEATURES } |
Functions | |
| gboolean | header_get_feature (const gchar *feature_name, const header_t *header, guint *feature_version_major, guint *feature_version_minor) |
| Retrieves the major and minor version from a feature in the X-Features header, if no support was found both major and minor are 0 and FALSE is returned. | |
| void | header_features_add (xfeature_t xf, const gchar *feature_name, int feature_version_major, int feature_version_minor) |
| Add support for feature_name with the specified version to the X-Features header. | |
| void | features_close (void) |
| void | header_features_generate (xfeature_t xf, gchar *buf, size_t len, size_t *rw) |
| Adds the X-Features header to a HTTP request. | |
|
|
|
|
|
|
|
||||||||||||||||||||
|
Add support for feature_name with the specified version to the X-Features header.
|
|
||||||||||||||||||||
|
Adds the X-Features header to a HTTP request.
|
|
||||||||||||||||||||
|
Retrieves the major and minor version from a feature in the X-Features header, if no support was found both major and minor are 0 and FALSE is returned.
|
1.3.9.1