Coder Social home page Coder Social logo

gg's People

Contributors

advanderveer avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

gg's Issues

Provide default error encoding and customisation

Returning an error from the gRPC implementation should be handled more gracefully for default implementations by actually encode as JSON but should be customisable if necessary. Also how would we like to deal with errors from code generation itself, can we provide error codes? Maybe those by grpc

Allow users to assert response codes in the generated code

Often you would like your code to behave differently whenever the server returns an unexpected status code was returned. The default implementation should take care that the body might not contain encoded content in cases and handle this gracefully.

Add lifecycle hooks before and after http request parsing and response sending

Not all possible scenarios can be covered with generated codes. To allow for fine-grained customisations to how HTTP requests are parsed into the protobuf message it would be usefull to provide hooks that can be implemented for certain endpoints. Specifically after the input has been parsed and before output is send to the client.

Allow requesters to be instrumented with a logger

Debugging mall functioning endpoints and requests can be hard when you cant print the actual requests and responses to/from the server. Requesters should define a small and simple logging interface that consumers can implement to see what happens in the generated code. It should be such that the standard lib (accidentally) implements this interface.

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.