Replies: 4 comments 15 replies
-
Thanks @gurgeous, this feedback is incredibly useful and I understand all the point above can be source of confusion for new developers.
On the utility methods and the default_connectionOne thing I'd like to point out is that the "utility methods" exposed by the main Faraday module ( So a much better approach is to instead create one connection object per API and then use that instead to configure how the communication with that API should work. |
Beta Was this translation helpful? Give feedback.
-
Thanks for your help with the usage page. Very pleased with the new content. I'd be happy to work on the Middleware page too. Some ideas:
|
Beta Was this translation helpful? Give feedback.
-
OK, I think my original goals have been met. Thanks guys. Happy to contribute more docs if anyone has suggestions. The only other thing I'd perhaps like to see is a hint about how to dump the current middleware stack. I've gotten some mileage out of puts f.builder.handlers.map(&:klass) |
Beta Was this translation helpful? Give feedback.
-
I am new to Ruby so please be gentle. First off, I really like Faraday so far it has been simple to use and the design/codebase has been educational. Second, I am wondering about the documentation regarding the main http functions (delete, get, head, post, put trace) in the Connection class. Those are listed in the document as Class Method's but their usage seems to be as Instance Methods (see example at the top of that doc page). You use the class_eval method which, according to https://web.stanford.edu/~ouster/cgi-bin/cs142-winter15/classEval.php, indcates that class_eval "...define[s] an instance method (one that applies to all of the instances of ClassName)" vs instance_eval which "...define[s] a class method (one associated with the class object but not visible to instances)." Given my limited experience I am sure I am missing something but just in case I thought I would post info here. |
Beta Was this translation helpful? Give feedback.
-
(see #1168) I think the current docs are great, but might benefit from a few improvements:
:json
and figure out how to make it work. The docs could give some hints about that.:url_encoded
is in the default middleware stack.#use
,#request
&#response
. Still not totally sure I understand. This is just a namespacing thing, right?What do you guys think?
Beta Was this translation helpful? Give feedback.
All reactions