Skip to content

Commit

Permalink
Remove BSON support
Browse files Browse the repository at this point in the history
  • Loading branch information
nicolasff committed Sep 21, 2012
1 parent 8a8ab84 commit 2c634fa
Show file tree
Hide file tree
Showing 7 changed files with 5 additions and 576 deletions.
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
OUT=webdis
HIREDIS_OBJ=hiredis/hiredis.o hiredis/sds.o hiredis/net.o hiredis/async.o
JANSSON_OBJ=jansson/src/dump.o jansson/src/error.o jansson/src/hashtable.o jansson/src/load.o jansson/src/strbuffer.o jansson/src/utf.o jansson/src/value.o jansson/src/variadic.o
FORMAT_OBJS=formats/json.o formats/raw.o formats/common.o formats/custom-type.o formats/bson.o
FORMAT_OBJS=formats/json.o formats/raw.o formats/common.o formats/custom-type.o
HTTP_PARSER_OBJS=http-parser/http_parser.o

CFLAGS=-O3 -Wall -Wextra -I. -Ijansson/src -Ihttp-parser
CFLAGS=-O0 -ggdb -Wall -Wextra -I. -Ijansson/src -Ihttp-parser
LDFLAGS=-levent -pthread

# check for MessagePack
Expand Down
2 changes: 0 additions & 2 deletions README.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@ curl -d "GET/hello" http://127.0.0.1:7379/
* GET and POST are supported, as well as `PUT` for file uploads.
* JSON output by default, optional JSONP parameter (`?jsonp=myFunction` or `?callback=myFunction`).
* Raw Redis 2.0 protocol output with `.raw` suffix
* BSON support for compact responses and MongoDB compatibility.
* MessagePack output with `.msg` suffix
* HTTP 1.1 pipelining (70,000 http requests per second on a desktop Linux machine.)
* Multi-threaded server, configurable number of worker threads.
Expand Down Expand Up @@ -173,7 +172,6 @@ $ curl http://127.0.0.1:7379/MAKE-ME-COFFEE.raw
Several content-types are available:

* `.json` for `application/json` (this is the default Content-Type).
* `.bson` for `application/bson`. See [http://bsonspec.org/](http://bsonspec.org/) for the specs.
* `.msg` for `application/x-msgpack`. See [http://msgpack.org/](http://msgpack.org/) for the specs.
* `.txt` for `text/plain`
* `.html` for `text/html`
Expand Down
2 changes: 0 additions & 2 deletions cmd.c
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
#include "server.h"

#include "formats/json.h"
#include "formats/bson.h"
#include "formats/raw.h"
#ifdef MSGPACK
#include "formats/msgpack.h"
Expand Down Expand Up @@ -302,7 +301,6 @@ cmd_select_format(struct http_client *client, struct cmd *cmd,
struct reply_format funs[] = {
{.s = "json", .sz = 4, .f = json_reply, .ct = "application/json"},
{.s = "raw", .sz = 3, .f = raw_reply, .ct = "binary/octet-stream"},
{.s = "bson", .sz = 4, .f = bson_reply, .ct = "application/bson"},

#ifdef MSGPACK
{.s = "msg", .sz = 3, .f = msgpack_reply, .ct = "application/x-msgpack"},
Expand Down
Loading

0 comments on commit 2c634fa

Please sign in to comment.