GithubHelp home page GithubHelp logo

Fix Wasm build about async-h1 HOT 5 CLOSED

MarcAntoine-Arnaud avatar MarcAntoine-Arnaud commented on June 3, 2024 1
Fix Wasm build

from async-h1.

Comments (5)

jbr avatar jbr commented on June 3, 2024

I agree that this is worth looking at. When I added that line, I didn't believe that we supported async-h1 on wasm at all. Can you describe your use case?

from async-h1.

MarcAntoine-Arnaud avatar MarcAntoine-Arnaud commented on June 3, 2024

I just researching a library to make some http call using async-std library.
I found async-h1 that works perfectly on native.

That's why it don't make 100% sense to keep server compatibility with wasm target.
It's the reason for the option of creating feature for server/client.

But as it don't look very complex, I think it can be awesome to support HTTP Client for Wasm.

from async-h1.

jbr avatar jbr commented on June 3, 2024

Thanks! Yes, I agree it would be interesting, but we don't currently support wasm. What transport would you be using? Why would you prefer to use async-h1 to the built-in fetch? Is this for browser or wasi?

If you're interested in making http requests with async-std in wasm, would surf be an option for you?

from async-h1.

MarcAntoine-Arnaud avatar MarcAntoine-Arnaud commented on June 3, 2024

I don't wanna to use Fetch as because it's web only.
We are building a cross platform player, for native and web.

I don't expect to have switches in my code.
surf is maybe a good alternative to async-h1.

from async-h1.

MarcAntoine-Arnaud avatar MarcAntoine-Arnaud commented on June 3, 2024

I have switch to surf and it works perfectly.
I close the issue. Re-open if needed.

from async-h1.

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.