Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create resource from HTTP #125

Open
Kaliumhexacyanoferrat opened this issue Nov 3, 2020 · 0 comments
Open

Create resource from HTTP #125

Kaliumhexacyanoferrat opened this issue Nov 3, 2020 · 0 comments
Labels
enhancement New feature or request good first issue Good for newcomers

Comments

@Kaliumhexacyanoferrat
Copy link
Owner

Kaliumhexacyanoferrat commented Nov 3, 2020

As the developer of a web application, I would like to create resources from HTTP, so that I can use them where needed.

Example

var resource = Resource.FromWeb(/* url, credentials */);

Host.Create()
    .Handler(Download.From(resource))
    .Run();

Acceptance criteria

  • The functionality is implemented in the IO module
  • The functionality uses an efficient checksum algorithm (HEAD request, eTag, ...)
  • The functionality uses a well tested, mature, maintained .NET class to issue requests (e.g. HttpClient)
  • The connection is created and disposed on the fly where needed (must be thread-safe)
  • The handler does not expose internal, client-specific types (e.g. network credentials)
  • Credentials can be passed (e.g. via a lambda setting the Authorization header)
  • There are acceptance tests for the new functionality (using the webserver provided by the runner itself)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

1 participant