Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement JSON/Plaintext Capability #15

Open
bradstimpson opened this issue Jul 16, 2017 · 1 comment
Open

Implement JSON/Plaintext Capability #15

bradstimpson opened this issue Jul 16, 2017 · 1 comment
Labels

Comments

@bradstimpson
Copy link
Contributor

Add capability to allow the user to send messages in either plaintext or json format.

Set the httpReadFormat and httpWriteFormat variables.

@SGrondin
Copy link
Member

I think the way to do this is by first completing support for all the basic operations (read, write, count, delete, health) and then making sure they take arguments that will build the right requests regardless of the underlying format.

For example, writing takes 2 arguments (array of messages and atomic boolean). Then depending on the httpFormat, it'll either build the right JSON object (json format) or plaintext body with http header (plaintext format).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants