Giter VIP home page Giter VIP logo

Comments (5)

vasdeveloper avatar vasdeveloper commented on May 3, 2024

对的,目前Android侧对外暴露的请求头部是通过实现SonicHeadersProvider来保存和获取。还有一种方式是通过重载SonicSessionConnection的getConnection函数实现,但是暂时未公开,有需要的话,我们可以支持。

from vassonic.

vangeldu avatar vangeldu commented on May 3, 2024

了解了,谢谢

from vassonic.

vasdeveloper avatar vasdeveloper commented on May 3, 2024

@duweigang 直接public getConnection函数会对外暴露SonicSessionConnection的实现实体,在项目中这种封装方式会造成后期问题排查困难,我们争取提供一种新的方式,可以让业务把请求头传入Connection中去。

from vassonic.

vangeldu avatar vangeldu commented on May 3, 2024

现在确实是不能把请求头传到Connection是嘛?没有其他方法嘛?

from vassonic.

vasdeveloper avatar vasdeveloper commented on May 3, 2024

1.1.0版本正在开发中,我们会支持config里面增加header字段,让业务方便填入。

from vassonic.

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.