58 Star 431 Fork 110

smartboot / smart-http

 / 详情

接口设计建议

待办的
创建于  
2021-02-08 12:13
  1. 开放response.write(Bytebuffer, 我自己有个缓冲不是heapbuffer, 没办法转回byte[], 转了也是浪费
  2. 提供setHeader(String key, long val, 像content-length这种就是long
  3. 对post请求 payload multiparty的请求体 提供纯异步BodyHandler, 解析完毕后才进入worker, 可以参考undertow exchange.dispatch(executor, handler)
  4. 向客户端写文件的操作, 提供异步接口支持, 并带有限速功能(要实现限速 就肯定得异步,不然sleep一下就会吃掉一个线程

评论 (0)

张天笑 创建了任务
张天笑 关联仓库设置为smartboot/smart-http
展开全部操作日志

登录 后才可以发表评论

状态
负责人
里程碑
Pull Requests
关联的 Pull Requests 被合并后可能会关闭此 issue
分支
开始日期   -   截止日期
-
置顶选项
优先级
参与者(1)
1338524 zhangtianxiao 1578949255
Java
1
https://gitee.com/smartboot/smart-http.git
git@gitee.com:smartboot/smart-http.git
smartboot
smart-http
smart-http

搜索帮助