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

inspect() implementation #38

Open
tj opened this issue Apr 11, 2014 · 6 comments
Open

inspect() implementation #38

tj opened this issue Apr 11, 2014 · 6 comments

Comments

@tj
Copy link
Contributor

tj commented Apr 11, 2014

which parses would be pretty sweet

@jonathanong
Copy link
Member

can you clarify?

@tj
Copy link
Contributor Author

tj commented May 7, 2014

right now you just get a bunch of internal props, but it would be nice to display what you're really looking for. AFAIK there's no way to return them all right now

@jonathanong
Copy link
Member

what info are you looking for? 1.0.0 will only show .req and .res. not sure if you want to hide those either.

or did you just want something less noisy?

@dougwilson
Copy link
Contributor

I think this is about http://nodejs.org/api/util.html#util_util_inspect_object_options where you add a inspect method to Cookie (https://github.com/expressjs/cookies/blob/rewrite/lib/cookie.js). Probably something like inspect: function(){ return this.toHeader() } for when you call util.inspect(cookie).

@jonathanong
Copy link
Member

Ya but cookie is private. Heh

@dougwilson
Copy link
Contributor

Ah, yea. Glancing though the new code, I don't particularly see anything to inspect from the outside.

@Fishrock123 Fishrock123 added this to the 1.0.0 milestone Jun 19, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants