Commit Graph

24 Commits

Author SHA1 Message Date
Martin Polden
8f71576357 Add support for city lookup 2016-04-17 11:28:47 +02:00
Martin Polden
8027c55fdf Refactor lookup methods 2016-04-17 11:16:30 +02:00
Martin Polden
7d23fe9853 Add /json route 2016-04-17 09:31:33 +02:00
Martin Polden
26fdb23f37 Update user agent regexp 2016-04-16 20:18:20 +02:00
Martin Polden
5e2c67573c Remove unused methods 2016-04-16 11:11:19 +02:00
Martin Polden
837a32db56 Use correct method 2016-04-16 10:54:41 +02:00
Martin Polden
7ffaf5e9ac Cleanup 2016-04-16 10:45:43 +02:00
Martin Polden
a2d26b2f0e Rewrite tests 2016-04-16 10:17:15 +02:00
Martin Polden
4664693b0a Close connection when testing port 2016-04-16 09:48:39 +02:00
Martin Polden
55d72fd053 Add country lookup as separate handler 2016-04-16 09:19:26 +02:00
Martin Polden
95b5b76ef7 Only display enabled features on web page 2016-04-15 21:23:03 +02:00
Martin Polden
4edbd3cf10 Implement port testing. Fixes #11 2016-04-15 20:52:15 +02:00
Martin Polden
6e09b06e7d Fix test 2016-04-15 20:48:52 +02:00
Martin Polden
5ad48ad3fa Add support for HTTPie. Fixes #13 2016-04-15 20:19:14 +02:00
Martin Polden
f4420781a2 Refactor 2016-04-15 20:14:16 +02:00
Rafal Jeczalik
5cd09f5e9b api: handle net/http as cli request 2016-02-23 12:15:23 +01:00
Martin Polden
fa32c7ff66 Improve tests
Fixes #8.
2015-09-29 20:39:21 +02:00
Thomas Wouters
3d14ea63ba add hostname lookup 2015-09-28 12:47:50 +02:00
Martin Polden
ccd3c7a7bb Readd all handler
Fixes #6.
2015-09-18 17:46:08 +02:00
Martin Polden
255826db99 Improve error handling 2015-09-18 17:36:17 +02:00
Martin Polden
891312f1f8 Return error for unknown header 2015-09-17 22:39:12 +02:00
Martin Polden
5d4f6b3d3d Make handlers public 2015-09-17 22:16:33 +02:00
Martin Polden
042f0d975f Write response if error occurs 2015-09-17 22:09:50 +02:00
Martin Polden
40df3e5a38 Rewrite 2015-09-17 21:18:06 +02:00