mirror of
https://github.com/minio/minio.git
synced 2026-11-22 23:14:46 +00:00
Add rpc tests
This commit is contained in:
1 parent
676b9058de
commit
ece797c16e
3 files changed
+222
-113
No files matched your search
@@ -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)
|
||||
}
|
||||
Reference in new issue
Block a user