NewConnection creates a new connection with the given useragent string and a base URL set up to talk to http://localhost:defaultport
()
| 53 | // NewConnection creates a new connection with the given useragent string |
| 54 | // and a base URL set up to talk to http://localhost:defaultport |
| 55 | func NewConnection() *Connection { |
| 56 | u := "http://localhost:" + strconv.Itoa(DefaultPort) |
| 57 | return NewConnectionTo(u) |
| 58 | } |
| 59 | |
| 60 | // NewConnectionTo creates a new connection with the given useragent string |
| 61 | // and a base URL derived from the hostURL argument. |
no test coverage detected