Coder Social home page Coder Social logo

teco-core's People

Contributors

stevapple avatar

Stargazers

 avatar

teco-core's Issues

Add note about pagination behavior

Pagination helpers that return a response sometimes include an empty one at the end. This is because when Teco cannot determine if there're more results, a new request will always be sent.

However, such behavior may be unexpected for some developers because such "failed query" may contain false or pseudo information. We should explain this behavior in documentation and guide users to handle such case properly.

Supports query encoding correctly

We actually have two different standard of percent-encoded query:

  • x-www-form-urlencoded: for POST request body;
  • RFC 3986 for GET request URL.

TCSignerV1 (and COSSigner) needs to handle the differences properly and, if possible, parse the format exactly and throw error on malformed input.

As a side-effect, TCSignerV1 should also precondition on the provided HTTP method.

Use `URLComponents` instead of `URL` in `TCSignerV3.SigningData`

URLComponents conforms to RFC 3986, which is used by Tencent Cloud API standard; while URL conforms to the older RFC 1808. To ensure the URL is correctly encoded, we should change the internal from using URL to URLComponents or its fragments. This is potentially breaking because some non-throwing APIs will become throwing. We'll investigate a proper solution in v0.6.

Add guides and other documentation for `TecoCore`

TecoCore is the core framework of Teco, and documentation is an important part of a library.

The documentation bundle of TecoCore should at least include:

  • An article explaining how TecoCore works;
  • A guide for building a custom service;
  • A guide for configuring TCClient;
  • A guide for configuring TCServiceConfig;
  • A guide for using pre-defined and custom CredentialProvider;
  • A guide on error handling;
  • A guide for using custom region and EndpointProvider.

Stabilize pagination feature

We should have a stable pagination API surface by 1.0.0 release, including related protocols, functions and data structures.

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.