Cory LaNou
d6800dde0d
added ability for /ping to respond to HEAD method. fixes #1596
2015-02-12 17:43:52 -07:00
Cory LaNou
e99ba7207c
add test for nil user on authenticated server
2015-02-11 11:13:41 -07:00
Cory LaNou
04fe5a6bc7
check for nil user in write handler
2015-02-11 10:52:29 -07:00
Todd Persen
4e17f4dbc0
Handle OPTIONS for CORS preflight.
2015-02-10 23:04:20 -08:00
Ben Johnson
3cb275cb01
Add optional gzip flag to handler.
...
The previous routing gzipped all routes and overwrote the Content-Length
header. This header was needed for the metastore copy and caused it to
break clustering. This commit fixes this issue by adding a `gzipped` flag
to the `route` struct.
2015-02-09 10:23:11 -07:00
Cory LaNou
bcd9724ce0
allow pretty printing on http errors in query endpoint
2015-02-07 10:32:37 -07:00
Cory LaNou
93d9236554
fixing status named route, removing whitespace
2015-02-06 15:20:55 -07:00
Cory LaNou
339e170d82
start of a status http endpoint
2015-02-06 13:52:28 -07:00
Cory LaNou
cd57a7fe42
removing debug output
2015-02-05 16:30:09 -07:00
Cory LaNou
1604d7f604
refactor how we default authentication enabled
2015-02-05 15:54:32 -07:00
Cory LaNou
f4dfb87acc
first pass at hardening authorize
2015-02-05 14:39:40 -07:00
Cory LaNou
8845a07876
adding missed return.
2015-02-04 17:34:26 -07:00
Cory LaNou
2b5565a2e7
add gzip response capability to httpd endpoints. fixes #1449
2015-02-04 16:16:37 -07:00
Philip O'Toole
347032ebf1
Move batch-points code to influxdb package
...
Since batching is not specific to the HTTP transport, this makes the
code available for use by other future transports.
2015-02-03 18:43:23 -08:00
David Norton
19992f3ecc
gofmt -s (simplify)
2015-02-01 15:33:12 -05:00
Cory LaNou
c9e4eea836
inherit precision from top level object when writing points
2015-01-29 16:44:10 -07:00
Cory LaNou
b6ceca4c1c
godoc comments and misc formatting
2015-01-29 16:33:31 -07:00
Cory LaNou
b6725501f4
Rounding precision on writing
2015-01-29 16:23:15 -07:00
Cory LaNou
88759a7ecc
time should marshal into UTC and nanoseconds
2015-01-29 16:23:15 -07:00
Cory LaNou
42630c38dc
removing log output
2015-01-29 16:23:15 -07:00
Cory LaNou
a724e3b86c
BatchWrite supports unmarshalling epoch with precision, RFC3339, RFC3339Nano
2015-01-29 16:23:15 -07:00
Philip O'Toole
a197d16ac8
Add top-level "results" key
...
This brings the API output into line with the API specification.
2015-01-27 15:47:47 -08:00
Philip O'Toole
97d4548790
JSON decoder should not UseNumber
2015-01-27 08:41:46 -08:00
Cory LaNou
49b21f9568
clearer error message
2015-01-26 15:43:33 -07:00
Cory LaNou
c5cb996ddd
parseCredentials is working to hard. BasicAuth() from the std lib will do
2015-01-26 15:39:26 -07:00
sakamotomsh
afa63c9e60
Fix error message.
2015-01-26 23:01:07 +09:00
Philip O'Toole
65562162b0
Support pretty-print ouput on query endpoint
...
Re-implementation of existing 0.7+ feature.
2015-01-23 15:07:16 -08:00
Cory LaNou
6615dd799f
refactoring based on PR comments
2015-01-22 13:54:19 -07:00
Cory LaNou
7e463e4f5d
merging httpd/handler.go and httpd/filters.go
2015-01-21 18:17:09 -07:00
Cory LaNou
fd626de462
refactoring the refactoring
2015-01-21 18:13:51 -07:00
Cory LaNou
7a329c6c2c
introducing requestID to http stack
2015-01-21 15:36:50 -07:00
Cory LaNou
29a784efef
add in authorization for http write endpoint
2015-01-21 14:20:51 -07:00
Cory LaNou
f902ecae24
real common log format logging
2015-01-21 13:58:06 -07:00
Cory LaNou
5421285be2
added version to server struct
2015-01-21 12:53:18 -07:00
Cory LaNou
d1f212963f
rename getUsernameAndPassword -> basicAuthCredentials. move it to filters
2015-01-21 12:45:42 -07:00
Cory LaNou
5c0c728fc3
merge conflict
2015-01-21 11:06:59 -07:00
Cory LaNou
1278a32487
starting web logging
2015-01-21 08:07:03 -07:00
Cory LaNou
f52d9aa582
wip - added filters. added the concept of routes. more to come
2015-01-20 17:10:45 -07:00
Cory LaNou
3ab277214d
first pass at moving handlers to httpd package
2015-01-20 10:50:13 -07:00