Giter VIP home page Giter VIP logo

corehttp's People

Contributors

casademora avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

corehttp's Issues

Add support for easy logging

Logging should be

  • easy to enable and disable
  • show relevant request details

Bonus points if an external framework can be used

API for simple Image URL requests

an Image resource should be able to follow the same request pipeline. The returned result should be a Result<UIImage, HTTPResponseError>

Make checking HostedResources match host.request parameter at compile time

Currently, there is no check that a resource is requested agains the correct host. That is, for example, a Facebook resource could to requested against a Github host. This is completely invalid, hence the HostedResource Protocol to tie resources to hosts. However, current attempts at adding something like R: RequestedResource & HostedResource where R.HostedType == Self in the HTTPHostProtocol doesn't compile nor when I can get it to compile, the resource does not get checked at compile time.

Sample code is missing

There is no sample code which would show-case the usage of the library. It could be in the same repo or in some other one (with a link in this repo's README.md)

Fix request authorization model

The authorization scheme is a little underwhelming at the moment. At the simplest, it should be able to use the following common methods of request authentications:

  • add query parameters to GET queries
  • add a basic credential header using a base64 hash of username:password string
  • add a a bearer credential header returned from an oauth login

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.