Skip to content

Added POST to HttpClient #2107

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

Closed
wants to merge 1 commit into from
Closed

Conversation

markFromMST
Copy link

Added POST to HttpClient and also the ability to set a header (for API
Keys) for GET and POST.

Added POST to HttpClient and also the ability to set a header (for API
Keys) for GET and POST.
addParameter("--header");
addParameter(header);
}
}

Copy link
Contributor

Choose a reason for hiding this comment

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

I would remove setHeader and use addHeader(name, value) or just addHeader(header). A function with add in the name implies an accumulation, and also the ability to call it more than once. Since curl actually requires that you pass multiple --headers if you want to set more than one, having addHeader(header) makes more sense (to me, at least)

@ffissore
Copy link
Contributor

ffissore commented Jul 8, 2014

Closed by #2170

@ffissore ffissore closed this Jul 8, 2014
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