Sign in

    mio

    Download zip
    Author
    Version
    0.1.0
    License
    Apache-2.0
    Last updated
    last year
    Downloads
    884

    #oboard/mio

    A powerful HTTP networking package for MoonBit.

    #Features

    • HTTP GET/POST requests
    • JSON response parsing
    • File downloads
    • Async operations with @mio.run

    #Usage Examples

    #HTTP GET Request

    @mio.run(fn() {
    if @mio.get?("https://api.github.com") is Ok(a) {
    println(a.unwrap_json())
    }
    })

    #HTTP POST Request

    @mio.run(fn() {
    if @mio.post?("/test", data={ "id": 12, "name": "dio" }) is Ok(a) {
    println(a.unwrap_json())
    }
    })

    #Download File

    @mio.run(fn() {
    if @mio.download?("https://api.github.com", save_path="api.json") is Ok(_) {
    println("Downloaded")
    }
    })

    Source Files

    Powered by MoonBit

    Site sourceReport issuePackagesBuild queueSkillsStatistics

    © 2026 mooncakes.io