No description
This repository has been archived on 2026-06-16. You can view files and clone it, but you cannot make any changes to its state, such as pushing and creating new issues, pull requests or comments.
  • C 77.1%
  • Shell 12.5%
  • C++ 6.1%
  • CMake 3.8%
  • Makefile 0.5%
Find a file
2024-03-20 08:21:06 +00:00
bin 处理s2c单向流下,响应体对应的是HEAD方法。 2021-06-18 18:44:46 +08:00
ci Update ci/travis.sh 2023-09-19 08:49:03 +00:00
cmake 🔧 build(cmake and changelog): 提升cmake require版本,修复调用changelog脚本报错 2023-07-30 21:34:20 +08:00
src OMPUB-1170: Bugfix memory leak 2024-03-07 05:30:32 +00:00
test Add unit test 2024-03-20 08:21:06 +00:00
.gitignore Feature: HTTP unzip content is consistent with the packet life cycle 2024-01-24 10:29:15 +08:00
.gitlab-ci.yml Debug版本链接ASAN,用于定位问题 2023-07-26 11:33:22 +08:00
autorelease.sh add cmake 2019-07-04 16:38:50 +08:00
autorevision.sh add cmake 2019-07-04 16:38:50 +08:00
CMakeLists.txt 🔧 build(cmake and changelog): 提升cmake require版本,修复调用changelog脚本报错 2023-07-30 21:34:20 +08:00
readme.md 📃 docs(readme): 使用说明合并至readme 2023-04-12 09:23:02 +08:00

1.简介

http.so是sapp平台解析层插件。

2.业务层开发指南

HTTP业务层插件demo参见project http_servicehttps://git.mesalab.cn/MESA_Platform/http_service

3. 依赖库

G_HTTP_VERSION_4_20191112之后的http.so依赖http_parsr.so该库可以从./src/lib/中获取。 编译http_parsr源码make library生成动态库。

4.配置文件说明

http_main.conf

=================

[FUNCTION]
switch_no_biz=1

#0 means close stat
stat_cycle=0
#stat output screen 0: screen 1: file
stat_screen_print=0
stat_file=./log/http/http_stat.log

#ungzip
ungzip_switch=1

#support proxy
proxy_switch=1

#single-way traffic need http session num, 0 means no this function
singleway_maxseq=2

#0: field callback mode(default)     1:batch callback mode
callback_mode=0

#batch field maxnum when http_all or http_other
batch_field_maxnum=32

#check HEAD when s2c one-way
s2c_head_check_switch=1   # 检查s2c单向流情况下应答消息是否是HEAD的应答如果是头部中的content-length与实际响应体大小不一致。

[LOG]
#FATAL:wrong info
#INFO: lostlen; special proc ;proxy info
#DEBUG: pending and close info; all url; 
log_level=30
log_path=./log/http/runtime