Comments (4)
This should be possible with request
(http://github.com/mikeal/request).
So in my opinion this should be done when you instantiate the nano
Object.
I think this is already possible:
I'm going to close the issue, unless you state this isn't sufficient. If it's not and you would like to contribute this functionality I would accept it. Just:
- Add documentation to
readme
. - Add a cookie.js test in shared.
When making the tests please look at branch issue63
as this is the future for nano in terms of testing. Anything but the doc
folder as I am currently finishing it up.
ps. issue63
is a significant refactor wich will likely:
- make peoples life easier in contributing to the project (or at least I hope so)
- better code quality
- using
errs
for errors as opposed to having a separate class - removing logger.js
- Fixing issue #63
- Update to latest version of dependencies and devDependencies, including updating all the tests
from nano.
The problem with this, is that it means that the developer must have the cookie at the point of instantiation (as far as I'm aware). Which prevents you from simply having nano = require('nano')('http://localhost:5984');
at the start of your file.
I personally feel that its necessary for the developer to have more granular control over when to send a cookie.
Alternatively, if there is a way of updating the config of an instance of nano after its instantiation then that would be another option I guess.
from nano.
Alternatively, if there is a way of updating the config of an instance of nano
after its instantiation then that would be another option I guess.
Yes, you can create multiple instances of nano
. So this is fine.
Because it's an exception and would force you to change all methods, I think this is preferable.
Please feel free to send a pull request, can't wait to add you to the contributors list.
Also feel free to add your projects that use nano to the wiki.
from nano.
Nano 3 is out.
This should fix this.
Please reopen if you can't fix the problem you have using it :)
Thank you!
from nano.
Related Issues (20)
- Does nano support purge? HOT 2
- db.attachment.get file- 'could not be opened because it is empty'
- Can not get correct userctx HOT 2
- Couch DB 2 compatibilty HOT 3
- bulk() with _deleted:true causes error HOT 3
- db.multipart.get does not work with Cloudant Local 1.0.0.5 HOT 1
- Enable permanent replication by writing to "_replicator" database instead of "_replicate" database. HOT 3
- Support temp view
- Doubt on db access of live app HOT 2
- What is the keys in view function based on? Is it the key you emit in the views/map function? HOT 1
- How do you update _rev to update a document?
- uploaded files displaying base64 data in the browser (attachments not viewable)
- Problem with OR -clauses? HOT 1
- Error: badarg every few hours
- Error: {error,emfile} HOT 1
- Example Lazy Creation of View
- Query string encoded when using array of keys
- Database permissions
- db.fetch array of id error
- Attempting to return simple list of documents, small issue
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from nano.