mirror of https://github.com/dexidp/dex.git
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
17 lines
389 B
17 lines
389 B
package simplehttp |
|
|
|
func (r *HTTPRequest) GetResponseFromJSON(v interface{}) error { |
|
response, err := r.MakeGetRequest() |
|
if err != nil { |
|
return err |
|
} |
|
return response.ParseFromJSON(v) |
|
} |
|
|
|
func (r *HTTPRequest) PostResponseFromJSON(payload Payload, v interface{}) error { |
|
response, err := r.MakePostRequest(payload) |
|
if err != nil { |
|
return err |
|
} |
|
return response.ParseFromJSON(v) |
|
}
|
|
|