Module: Patron
- Defined in:
- lib/patron.rb,
lib/patron/util.rb,
lib/patron/error.rb,
lib/patron/request.rb,
lib/patron/session.rb,
lib/patron/version.rb,
lib/patron/response.rb,
lib/patron/proxy_type.rb,
lib/patron/response_decoding.rb,
ext/patron/session_ext.c
Defined Under Namespace
Modules: ProxyType, Util Classes: ConnectionFailed, Error, HeaderCharsetInvalid, HostResolutionError, NonRepresentableBody, PartialFileError, Request, Response, Session, TimeoutError, TooManyRedirects, URLFormatError, UnsupportedProtocol, UnsupportedSSLVersion
Constant Summary collapse
- VERSION =
"0.8.0"
Class Method Summary collapse
-
.libcurl_version ⇒ Object
Returns the version of the embedded libcurl.
-
.user_agent_string ⇒ String
Returns the default User-Agent string.
-
.version ⇒ String
Returns the version number of the gem.
Class Method Details
.libcurl_version ⇒ Object
Returns the version of the embedded libcurl.
@return [String] libcurl version string
203 204 205 206 207 |
# File 'ext/patron/session_ext.c', line 203 static VALUE libcurl_version(VALUE klass) { char* value = curl_version(); UNUSED_ARGUMENT(klass); return rb_str_new2(value); } |
.user_agent_string ⇒ String
Returns the default User-Agent string
44 45 46 |
# File 'lib/patron.rb', line 44 def self.user_agent_string @ua ||= "Patron/Ruby-%s-%s" % [version, libcurl_version] end |
.version ⇒ String
Returns the version number of the gem
38 39 40 |
# File 'lib/patron.rb', line 38 def self.version VERSION end |