2024.2.4 • Published 3 months ago

mingyang_http v2024.2.4

Weekly downloads
-
License
ISC
Repository
-
Last release
3 months ago

introduction

  • 精简高效的httpServer组件,体积小巧,运行高效,代码简单,支持multipart/form-data格式,支持通配路由,支持路由变量,能完美运行在 (aliyun FC / tencent SCF) 中,使用最小内存选项即可。
  • simplified and efficient httpServer component, small size, efficient operation, simple code, support multipart/form-data format, support wildcard routing, support routing variables, works perfectly in (aliyun function compute) and (tencent cloud serverless cloud function), minimum memory can be used.

environment

  • 1 General Node(nodejs)
  • 2 Aliyun FC (aliyun function compute)
  • 3 Tenyun SCF (tencent cloud SCF Node)

run

  • 1 NodeJS(on os)

    run “sample_bin.js directly(need to set environment variable develoment=true or delete related code in sample_bin.js)

  • 2 Aliyun FC (aliyun function compute)

    setup:function>setting>functing entry to “sample_bin.requestForAliyun”(its default value generally is index.handler)

  • 3 Tenyun SCF (tencent cloud SCF Node)

    setup:function>setting>functing entry to “sample_bin.requestForTenyun default value generally is index.main_handler)


test

  • 返回10个time开头的有字母ID(有分段符)
  • Returns 10 alphabetic IDs starting with time (with segment characters) http://localhost:9090/timeid/10

history

  • 2023-08-26
    • 去掉了post和put时候 强制要求content-length大于0的要求
    • removed the requirement that content-length be greater than 0 when post and put are mandatory
  • 未配置 允许的content-type 的情况下,那么允许所有的
  • if the allowed content-type is not configured, all are allowed
  • 优化一些http状态码的提示语
  • optimized some http status code prompts
  • 增加了示例代码 sample_bin:入口文件; sample_router:路由文件
  • added sample file sample_bin:entry file; sample_router:router file
  • 2023-10-13
    • 去掉了对mingyang_data包的依赖
    • removed the dependency on the mingyang_data package
  • request在任何情况下都有字段routerVariable
  • in any case there is a field routerVariable
  • 2024-01-17

    • 适配了腾讯云SCF
    • adapted to tencent cloud serverless cloud function
  • 2024-02-04

    • 优化了body中的代码
    • optimized the code in the body
  • 优化了示例代码
  • optimized the sample code (sample_bin.js and sample_router.js)

author

  • fujun wang(wang.fu.jun@qq.com)
  • Wangjing Beijing China
  • origin of the name : mingyang is my son's name
  • last modified : 2024-02-04

2024.2.4

3 months ago

2024.1.17

4 months ago

2023.10.13

7 months ago

2023.8.25

9 months ago

2023.8.26

9 months ago

2023.6.29

10 months ago

2023.8.23

9 months ago

2023.8.24

9 months ago

2023.5.23

12 months ago

2023.1.31

1 year ago

2022.12.12

1 year ago

2022.12.10

1 year ago

2022.12.2

1 year ago

2022.10.27

2 years ago

2022.10.19

2 years ago

2022.9.8

2 years ago

2022.10.3

2 years ago

2022.8.26

2 years ago

2022.9.13

2 years ago

2022.9.20

2 years ago

2022.4.19

2 years ago

2022.3.7

2 years ago

2022.2.27

2 years ago

2021.10.8

3 years ago

2021.9.6

3 years ago

2021.6.22

3 years ago

1.1.3

3 years ago

1.1.2

3 years ago

1.1.1

3 years ago

1.0.2

3 years ago

1.0.1

3 years ago