Giter Site home page Giter Site logo

Comments (9)

beetlex-io avatar beetlex-io commented on May 17, 2024

@yuanqinglin1
暂没提供这样的事件,Requested事件是已经响应完成,主要用于日志和跟踪用。
能否说一下这样做的需求情况

from bumblebee.

yuanqinglin1 avatar yuanqinglin1 commented on May 17, 2024

from bumblebee.

beetlex-io avatar beetlex-io commented on May 17, 2024

@yuanqinglin1
其实网关只负责网络流的处理,这种拆解分析消息体再拼装对性能的影响还是比较大的,
可以尝试了解一下RequestAgent类的ResponseBody方法,这个方法是负责http消息体转发。

from bumblebee.

yuanqinglin1 avatar yuanqinglin1 commented on May 17, 2024

from bumblebee.

beetlex-io avatar beetlex-io commented on May 17, 2024

@yuanqinglin1
把流中的数据read to bytes后根据自己实际情况进行处理,然后把最终结果转成bytes写回到对应响应的流中。

from bumblebee.

yuanqinglin1 avatar yuanqinglin1 commented on May 17, 2024

from bumblebee.

yuanqinglin1 avatar yuanqinglin1 commented on May 17, 2024

from bumblebee.

beetlex-io avatar beetlex-io commented on May 17, 2024

@yuanqinglin1
使用正则表达式来匹配

from bumblebee.

yuanqinglin1 avatar yuanqinglin1 commented on May 17, 2024

from bumblebee.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.