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

Feature/support header param #104

Merged
merged 4 commits into from
Sep 19, 2014
Merged

Conversation

raymondfeng
Copy link
Member

/to @ritch

@bajtos
Copy link
Member

bajtos commented Sep 18, 2014

Please update the jsdoc for SharedMethod constructor to describe this new options - see #88.

For the sake of completeness, it would be nice to support header type for response arguments too.

@raymondfeng raymondfeng force-pushed the feature/support-header-param branch from c61b9b1 to f4000d0 Compare September 18, 2014 21:25
@raymondfeng
Copy link
Member Author

@bajtos JSdoc updated. I think it's useful to support response headers but I'll defer the implementation.

@bajtos
Copy link
Member

bajtos commented Sep 18, 2014

I think it's useful to support response headers but I'll defer the implementation.

I am fine with that as long as the documentation makes it clear that the header value is for request arguments only. Which seems to be the case here.

req.headers = req.headers || {};
req.headers[name] = val;
}
break;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is not covered by any unit-test, is it?

@raymondfeng
Copy link
Member Author

@bajtos A test is added. See 04e582d.

@bajtos
Copy link
Member

bajtos commented Sep 19, 2014

LGTM.

raymondfeng added a commit that referenced this pull request Sep 19, 2014
@raymondfeng raymondfeng merged commit 6a54e62 into master Sep 19, 2014
@raymondfeng raymondfeng deleted the feature/support-header-param branch September 19, 2014 03:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants