Felix Lange
c213fd1fd8
all: import "context" instead of "golang.org/x/net/context"
...
There is no need to depend on the old context package now that the
minimum Go version is 1.7. The move to "context" eliminates our weird
vendoring setup. Some vendored code still uses golang.org/x/net/context
and it is now vendored in the normal way.
This change triggered new vet checks around context.WithTimeout which
didn't fire with golang.org/x/net/context.
2017-03-22 20:49:15 +01:00
Micah Zoltu
4e4e5fca54
rpc: add support for extended headers in CORS requests ( #3783 )
...
Fixes #3762 . Details about parameter:
a62a804a8a/cors.go (L50-L54)
2017-03-16 04:34:08 +01:00
Kenji Siu
d85d3c74db
internal/debug, internal/ethapi, rpc, swarm/storage: Ran "go fmt"
2016-11-01 18:40:36 +08:00
Jonathan Brown
ae341b31c8
rpc: set CORS Max-Age to reduce preflight OPTIONS requests
2016-10-03 20:24:58 +07:00
Felix Lange
91b7690428
rpc: add new client, use it everywhere
...
The new client implementation supports concurrent requests,
subscriptions and replaces the various ad hoc RPC clients
throughout go-ethereum.
2016-07-22 23:21:27 +02:00
Bas van Kervel
aa9fff3e68
rpc: various fixes/enhancements
...
rpc: be less restrictive on the request id
rpc: improved documentation
console: upgrade web3.js to version 0.16.0
rpc: cache http connections
rpc: rename wsDomains parameter to wsOrigins
2016-04-12 11:02:39 +02:00
Bas van Kervel
f7328c5ecb
rpc: add pub/sub support
2016-04-01 18:26:35 +02:00
Bas van Kervel
a7bae3b2a6
rpc/http: improve request handling
2016-03-23 11:27:08 +01:00
Péter Szilágyi
df75dbfd68
cmd, node, rpc: readd inproc RPC client, expose via node
2016-02-09 14:10:40 +02:00
Péter Szilágyi
a13bc9d7a1
cmd, common, node, rpc: move HTTP RPC into node, drop singletone aspect
2016-02-05 13:45:36 +02:00
Péter Szilágyi
72c255caef
rpc: allow RPC requests on GET too
2016-02-03 00:50:02 +02:00
Bas van Kervel
19b2640e89
rpc: migrated the RPC insterface to a new reflection based RPC layer
2016-01-26 13:51:50 +01:00
Bas van Kervel
a4a4e9fcf8
removed old rpc structure and added new inproc api client
2015-06-22 09:17:09 +02:00
Taylor Gerring
a2598e649d
Permit multiple CORS domains
...
Separated by spaces
2015-05-18 10:31:03 -05:00
Taylor Gerring
44a7f997c3
Unreverse ordering
2015-05-14 15:50:39 -05:00
Taylor Gerring
5c6540452a
Omit replies for notification requests
...
When Id is missing, the client does not want a response
2015-05-14 12:39:57 -05:00
Péter Szilágyi
0ad5898c0f
rpc, xeth: fix #881 , gracefully handle offline whisper
2015-05-11 11:53:53 +03:00
Taylor Gerring
b071e7f4db
Remove old logger from RPC pkg
2015-04-27 09:18:55 -05:00
Bas van Kervel
61885aa965
Don't export types/functions
2015-04-19 10:01:50 +02:00
Bas van Kervel
2c229bac00
Replaced channel pointer field with non pointer channel
2015-04-19 09:55:41 +02:00
Bas van Kervel
ead3dd9759
Stop accepted and alive connections (http keep-alive) when the rpc service is stopped
2015-04-16 19:23:57 +02:00
Bas van Kervel
57f93d25bd
admin.stopRPC support added which stops the RPC HTTP listener
2015-04-16 12:56:51 +02:00
obscuren
d82aaf617c
rpc: changed logging to use glog
2015-04-15 00:09:13 +02:00
Taylor Gerring
b6fde73ef1
Add settable domain to CORS handler #331
2015-03-29 21:56:04 +02:00
Taylor Gerring
04a7c4ae1e
Abstract http into rpc package
...
New RpcConfig object to pass growing config
2015-03-29 21:26:47 +02:00
Taylor Gerring
d9f8b1e0c1
Report InvalidTypeError as -32602 to JSON RPC
2015-03-28 21:42:44 +01:00
Taylor Gerring
e29396b691
Use ExtraDB for storage. Fixes #577
2015-03-27 09:36:18 +01:00
Taylor Gerring
abc3d8d50a
Make send internal
2015-03-19 18:06:26 -04:00
Taylor Gerring
1f2de6ecd5
Remove extra logger
2015-03-19 14:21:42 -04:00
Taylor Gerring
67c9d9c2fa
Remove JsonWrapper
2015-03-17 20:14:19 -04:00
Taylor Gerring
c6f84325b1
Support JSON RPC batch requests
2015-03-17 17:46:22 -04:00
Taylor Gerring
8fd243ee23
Add JSON RPC batch support
...
http://www.jsonrpc.org/specification#batch
2015-03-17 17:38:05 -04:00
zelig
16ecb1e2ea
rpc
...
- camelcase fields dont play nice with otto value magic: JsonRpc -> Jsonrpc, ID -> Id
- jeth: ethereum.js rpc transport provider direct bridge between js and ethereumApi via otto jsre
2015-03-15 13:21:54 +07:00
Taylor Gerring
d3f96dc720
Consolidate error type switch
2015-03-13 10:03:48 -04:00
Taylor Gerring
094f921e50
Convert to proper errors
...
Allow returning different JSON RPC error codes depending on error type
2015-03-12 19:07:03 -05:00
Felix Lange
9bf513e993
Merge ethereum/poc-9 into accounts-integration
...
Conflicts:
cmd/utils/cmd.go
cmd/utils/flags.go
core/manager.go
eth/backend.go
rpc/http/server.go
xeth/xeth.go
2015-03-09 23:25:46 +01:00
Felix Lange
a11f1d6a7e
rpc: add dataDir parameter and JSON-RPC handler
2015-03-09 23:08:46 +01:00