Ticket #6 (new task)

Opened 3 years ago

Create function parseHosts()

Reported by: atack2 Assigned to: tueda2
Priority: critical Milestone: Working Overhaul Extension
Component: Overhaul Behavior Version: 1.0
Keywords: Cc: atack2@ACM.UIUC.EDU, kbarnes3@ACM.UIUC.EDU

Description

parseHosts should be in a file called parse_hosts.js (all by itself), and behave as follows:

Accept one parameter: a string containing the value of the Overhaul-hosts header. These are space-separated address:port words.

Return an array with two elements: a list of host addresses, and a list of ports. Each of these should be the same size.

There should be no testing code and no unrelated code in this file.