Add rpc tests

This commit is contained in:
Harshavardhana
2015-07-07 17:27:34 -07:00
parent 676b9058de
commit ece797c16e
3 changed files with 222 additions and 113 deletions

View File

@@ -64,3 +64,13 @@ func (r RPCRequest) Do() (*http.Response, error) {
}
return resp, nil
}
// Get - get value of requested header
func (r RPCRequest) Get(key string) string {
return r.req.Header.Get(key)
}
// Set - set value of a header key
func (r *RPCRequest) Set(key, value string) {
r.req.Header.Set(key, value)
}