GithubHelp home page GithubHelp logo

user_agent's Introduction

Future direction

This project has stagnated, but perhaps can provide a foundation for future work. In particular, I beyond any of the TODO/FIXMEs listed, some thoughts. See seanmonstar/reqwest#14 for some background/history. The work that @SergioBenitez did in https://github.com/alexcrichton/cookie-rs and related answered/solved some of the questions in the above issue, esp. w.r.t. efficiency of cookie handling. At the same time, it raised some questions for me in terms of a good direction to take this code in:

  • The Cookie work largely involved decreasing/eliminating allocations with some more efficient string indexing, but I believe much of the logic in user_agent necessarily involves some canonicalization/normalization that would obviate this benefit. So it would make sense for this project to evolve in a way that e.g. a project like reqwest supporting user_agent doesn't have a negative impact when not needed.
  • cookie-rs has a CookieJar implementation, which handles storing cookies as well as some security details, but does not aim to implement path/domain matching, etc. Does it fit into this picture anywhere? Should CookieJar be updated to e.g. separate out concerns like security, session management, etc.?
  • Does it make more sense for user_agent to be something that wraps a thing like a reqwest/hyper/curl/etc. client, or should things like reqwest to "own" a session?

Library dependencies

  • error-chain
  • env_logger

Ergonomics

  • change get_with, etc. to not take a closure for "prepare_and_send"?

FIXME

  • are re-directs handled correctly?

TODO

License

This project is licensed and distributed under the terms of both the MIT license and Apache License (Version 2.0).

See LICENSE-APACHE and LICENSE-MIT

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.