Code Monkey home page Code Monkey logo

async-docker's People

Contributors

abronan avatar akirill0v avatar blankenshipz avatar fauxfaux avatar gregwebs avatar imamdigmi avatar jagu-sayan avatar joxit avatar klieth avatar matthiasbeyer avatar morsicus avatar petehayes102 avatar pitkley avatar prekucki avatar quilir avatar schrieveslaach avatar shulcsm avatar softprops avatar stephanbuys avatar timmartin avatar tshepang avatar

Watchers

 avatar

async-docker's Issues

Chaining http requests while communicating by unix socket

Current Connect trait implementation for Unix socket connection in this project does not work properly.

Default HTTP/1.1 keep-alive option causes not ending connection at all when one want to chain requests (eg. second request depends on the result of the first one).

Hyper collects first request result, passes it to the next chained future, but next request is never sent. When future with that request is polled, it always returns NotReady - as it was still waiting for the end of the previous query.

I've tested connection via loopback connection with Socat and it works fine (Socat was responding with docker-API-like response).

Status code contained in each Item

There should be a status code field in Item in every returned Future.

Currently, Result<Type> is returned and all wrong requests fail at body decoding - it is not as useful as it should be.

I think instead Result<Response<Type>> should be returned, where Response would be something like:

enum Response<Type> {
    Ok { code: u16, struct: Type }
    Wrong { code: u16, struct: Value }
}

A value generated from a wrong response's body often contains useful message field with failure reason.

Refactor builder

Currently, the builder uses hardcoded slices as keys in hashmaps.

There should be structs with Option fields for every parameter. It will prevent typo fails in the future - compiler will perform fields and types checks.
Also, lack of required fields should cause some required field is not set Error

Fix SSL connection feature

Currently, SSL TCP connection does not even compile. It probably does not need a lot of work to fix this, but I do not have time for that right now - it has low priority for me.

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.