Skip to content

Conversation

@maulik07
Copy link

@maulik07 maulik07 commented Sep 20, 2016

In response to Issue #31
Addresses PR #8

Added support to customize and tweak all available options listed under request module for node: Available Options.

The options could be passed in as a JSON Object to constructor argument of Http handler which will in-turn club these options with the required/default ones while sending a request.

The constructor argument could be omitted/skipped, under which case the API sticks to its current core functionality.

Sample Usage:
var handlers = [ new Security({}, [new UsernameToken({username: "yaron", password: "1234"})]) , new Http({timeout: 3000}) ]

Maulik Hakani added 2 commits September 20, 2016 11:32
…while sending ws requests. Options could be passed as constructor args to http handler.
@maulik07 maulik07 changed the title Added support to timeout option Added support to add/customize request options (Ex: timeout, proxy etc.) Sep 20, 2016
@Jonlondon
Copy link

Could be strange but in my case I need to edit headers. Should it be more interesting to replace 'jsonConcat' by an extend functionality so that we can replace any options?

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