// Call the Stein at specific `path` using the specified HTTP `method`. The result will be
// given to `v` if there is no error. If any error occurred, the return of this function is the error
// itself, otherwise nil.
Call the Stein at specific `path` using the specified HTTP `method`. The result will be
given to `v` if there is no error. If any error occurred, the return of this function is the error
itself, otherwise nil.
// Call the Stein at specific ` path ` using the specified HTTP ` method ` . The result will be // given to ` v ` if there is no error . If any error occurred the return of this function is the error // itself otherwise nil .
func (s *Stein) Call(method, path string, body io.Reader, v interface{}) (status int, err error) {
	req, err := s.newRequest(method, s.BaseURL+"/"+path, body)
	fmt.Println(path)
	if err != nil {
		return http.StatusInternalServerError, err
	}
	return s.executeRequest(req, v)
}
func ( s * Stein ) Call ( method , path string , body io . Reader , v interface { } ) ( status int , err error ) { req , err := s . newRequest ( method , s . BaseURL + " " + path , body ) fmt . Println ( path ) if err != nil { return http . StatusInternalServerError , err } return s . executeRequest ( req , v ) }
Call the Stein at specific `path` using the specified HTTP `method`.
Call the Stein at specific ` path ` using the specified HTTP ` method ` .