Matt Bell
|
cb72868ab4
|
commands: Fixed parser argument bug (TODO: better test coverage for command parsers)
|
2014-11-14 03:17:28 -08:00 |
|
Matt Bell
|
83cda2e699
|
commands/http: Fixed arg parse bug
|
2014-11-14 03:17:27 -08:00 |
|
Matt Bell
|
37f05a8bf6
|
commands: Ensure argument parsing maintains total argument count, so that argument validation will fail if there are too many
|
2014-11-14 03:17:27 -08:00 |
|
Matt Bell
|
116041c5ec
|
commands: Fixed argument value/definition mapping
|
2014-11-14 03:17:26 -08:00 |
|
Brian Tiger Chow
|
d3f9aadd3e
|
fix(commands/http/client) cast safely
|
2014-11-05 10:15:17 -08:00 |
|
Matt Bell
|
1b9b60331f
|
commands/http: Cleaned up argument handling in Parse
|
2014-11-04 02:04:51 -08:00 |
|
Matt Bell
|
df6c700426
|
commands/http: Renamed variable for clarity
|
2014-11-04 02:04:51 -08:00 |
|
Matt Bell
|
c8ae4b6f42
|
commands/http: Decomposed Client#Send function
|
2014-11-04 02:04:51 -08:00 |
|
Matt Bell
|
e57cd9b857
|
commands/http: Use net/url querystring encoder
|
2014-11-04 02:04:51 -08:00 |
|
Matt Bell
|
33b0990a3a
|
commands/http: Cleaner URL formation in client
|
2014-11-04 02:04:51 -08:00 |
|
Matt Bell
|
5e5d534eb3
|
commands/http: Refactored API to a Client object that takes a string address
|
2014-11-04 02:04:50 -08:00 |
|
Matt Bell
|
f76048f74b
|
commands/http: Unexported Handler fields and created constructor
|
2014-11-04 02:04:50 -08:00 |
|
Matt Bell
|
4552fce517
|
commands/http: Respond with error if encoding option isn't a string
|
2014-11-04 02:04:50 -08:00 |
|
Matt Bell
|
446acdcdb5
|
commands/http: Ensure request URLs start with expected prefix
|
2014-11-04 02:04:50 -08:00 |
|
Matt Bell
|
f6c38882f0
|
commands: Return a reader in a Response#Reader method, instead of making Response implementing io.Reader
|
2014-11-04 02:04:49 -08:00 |
|
Matt Bell
|
69a56de040
|
commands: Renamed Response#Value to Response#Output
|
2014-11-04 02:04:49 -08:00 |
|
Matt Bell
|
75649f3d49
|
commands: Moved argument checking into a Command method, fail early when parsing commands
|
2014-11-04 02:04:49 -08:00 |
|
Matt Bell
|
405cfd9762
|
commands/http: Made parser/client handle variadic arguments
|
2014-11-04 02:04:49 -08:00 |
|
Matt Bell
|
ee2c76992a
|
commands/cli: Open argument files when creating Requests (Moved out of HTTP client)
|
2014-11-04 02:04:48 -08:00 |
|
Matt Bell
|
40858b43ed
|
commands/http: Added stream argument handling to client and request parser
|
2014-11-04 02:04:48 -08:00 |
|
Matt Bell
|
3a8d60cc61
|
commands: Removed inpout stream from Request
|
2014-11-04 02:04:48 -08:00 |
|
Matt Bell
|
827f1dd0b0
|
commands: Changed Request arguments to a []interface{}
|
2014-11-04 02:04:48 -08:00 |
|
Matt Bell
|
83b2ba00e9
|
commands: Removed Command#Private field
|
2014-11-04 02:04:48 -08:00 |
|
Matt Bell
|
cfa56dde82
|
commands/http: Error if trying to run private command
|
2014-11-04 02:04:47 -08:00 |
|
Matt Bell
|
abcebb0bc2
|
commands/http: Improved client error handling
|
2014-11-04 02:04:47 -08:00 |
|
Matt Bell
|
ea09268044
|
commands/http: 404 when trying to call root command
|
2014-11-04 02:04:47 -08:00 |
|
Matt Bell
|
1e0cabd4db
|
commands/http: Pass root command in as field instead of statically depending on core/commands
|
2014-11-04 02:04:47 -08:00 |
|
Brian Tiger Chow
|
b1bf60b877
|
fix(cmd/ipfs2, commands) imports
|
2014-11-04 02:04:46 -08:00 |
|
Matt Bell
|
c0a9871d48
|
commands/http: Made HTTP client unmarshal response values based on the Command#Type
|
2014-11-04 02:04:46 -08:00 |
|
Matt Bell
|
32a2959348
|
commands/http: Don't try to parse HTTP response into a Response, just read the output
|
2014-11-04 02:04:46 -08:00 |
|
Matt Bell
|
714e13b63a
|
commands/http: Explicitly define the MIME types for each encoding
|
2014-11-04 02:04:46 -08:00 |
|
Matt Bell
|
81f29257a1
|
commands: Gave Requests a reference to the command they are being called on
|
2014-11-04 02:04:46 -08:00 |
|
Matt Bell
|
507192ef6e
|
commands/http: Use request body as command input stream
|
2014-11-04 02:04:45 -08:00 |
|
Matt Bell
|
42633e5d40
|
commands/http: Send request arguments in client requests
|
2014-11-04 02:04:45 -08:00 |
|
Matt Bell
|
753162529a
|
commands/http: Parse command args
|
2014-11-04 02:04:45 -08:00 |
|
Matt Bell
|
52bc8bd422
|
commands/http: Moved http request parsing into a Parse function
|
2014-11-04 02:04:45 -08:00 |
|
Matt Bell
|
29b96b64a5
|
commands/http: Made Handler set request contexts
|
2014-11-04 02:04:45 -08:00 |
|
Matt Bell
|
48bd73c530
|
commands/http: Made client load RPC host from config
|
2014-11-04 02:04:45 -08:00 |
|
Matt Bell
|
43c61a4e4b
|
commands/http: Moved HTTP RPC handler into commands/http
|
2014-11-04 02:04:44 -08:00 |
|
Matt Bell
|
8b61daa1db
|
commands/http: Moved HTTP RPC into commands/http package
|
2014-11-04 02:04:44 -08:00 |
|