cxbrooks / test

Second test for bugzilla to git
0 stars 0 forks source link

httpClient module impl. in Node is different than the httpClient module in Nashorn #4

Open cxbrooks opened 7 years ago

cxbrooks commented 7 years ago

Note: the issue was created automatically with bugzilla2github tool

Original bug ID: BZ#533 From: @cxbrooks Reported version: unspecified CC: accessors-devel@terraswarm.org

cxbrooks commented 7 years ago

Edward wrote:

I just noticed that the httpClient module implementation in the Node host does not have quite the same API as the httpClient module in the Nashorn host. The latter is documented here:

https://www.icyphy.org/accessors/wiki/Version0/HttpClient

I think the above wiki page needs to be the master definition of the interface.

I don't know how else to define the interface for a module, nor do I know how to enforce that two hosts implement the same interface. I think the policy we should follow is that each first writing of a module should document the API in the wiki, and then any port to other hosts needs to follow the same API, or change it in both the wiki and the first implementation..