session.h
来自「一个很好用的解析」· C头文件 代码 · 共 56 行
H
56 行
#ifndef SESSION_H_INCLUDED#define SESSION_H_INCLUDED#include "xmlrpc-c/abyss.h"#include "date.h"#include "data.h"typedef struct { uint8_t major; uint8_t minor;} httpVersion;struct _TSession { abyss_bool validRequest; /* Client has sent, and server has recognized, a valid HTTP request. This is false when the session is new. If and when the server reads the request from the client and finds it to be valid HTTP, it becomes true. */ TRequestInfo request_info; uint32_t nbfileds; TList cookies; TList ranges; uint16_t status; /* Response status from handler. Zero means handler has not set it. */ TString header; abyss_bool serverDeniesKeepalive; /* Server doesn't want keepalive for this session, regardless of what happens in the session. E.g. because the connection has already been kept alive long enough. */ abyss_bool responseStarted; /* Handler has at least started the response (i.e. called ResponseWrite()) */ struct _TConn * conn; httpVersion version; TTable request_headers; TTable response_headers; TDate date; abyss_bool chunkedwrite; abyss_bool chunkedwritemode;};#endif
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?