📄 httpr.h
字号:
/* * httpr.h -- declarations for http request library functions * * Authors: Gerhard Khueny <e9625442@student.tuwien.ac.at> * * TODO: * * Fixes: * * For license terms, see the file COPYING in the project directory. */#ifndef GSMS_HTTPR__ #define GSMS_HTTPR__ #ifndef GSMS_HTTP_LOG_DOMAIN #define GSMS_HTTP_LOG_DOMAIN "HTTP"#endif#include <glib.h>#define GSMS_HTTP_N_ERRORS 6#define GSMS_HTTP_OK 0#define GSMS_HTTP_INVALID_METHOD -1#define GSMS_HTTP_NO_URL -2#define GSMS_HTTP_NO_HOST -3#define GSMS_HTTP_NO_REFERER -4#define GSMS_HTTP_NO_CTYPE -5#define GSMS_HTTP_NO_BODY -6typedef struct{ gchar *method; gchar *url; gchar *protokoll; gchar *host; gchar *referer; gchar *accept; gchar *acceptlang; gchar *acceptchar; gchar *connection; gchar *proxy_connection; gchar *cookie; gchar *useragent; gchar *ctype; gchar *body; gchar *message;} GSmsHttp;gchar* gsms_http_url_encode (gchar *str);gint gsms_http_create_message (GSmsHttp *h);gchar* gsms_http_strerror(gint error);void gsms_http_clean_up(GSmsHttp *h);#endif /* GSMS_HTTPR__*/
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -