Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update URLs to curl #237

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,7 @@ Enhancements:
Enhancements:

* Add support for protocols and redir_protocols(
[libcurl SASL buffer overflow vulnerability](http://curl.haxx.se/docs/adv_20130206.html)).
[libcurl SASL buffer overflow vulnerability](https://curl.se/docs/adv_20130206.html)).
* Add max_send_speed_large and max_recv_speed_large([Paul Schuegraf](https://github.com/pschuegr), [\#33](https://github.com/typhoeus/ethon/pull/33))

## 0.5.7
Expand Down
2 changes: 1 addition & 1 deletion lib/ethon.rb
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,6 @@
#
# @note Please update to the latest libcurl version in order
# to benefit from all features and bugfixes.
# http://curl.haxx.se/download.html
# https://curl.se/download.html
module Ethon
end
4 changes: 2 additions & 2 deletions lib/ethon/curls/codes.rb
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ module Curls # :nodoc:
module Codes

# Libcurl error codes, refer
# https://github.com/bagder/curl/blob/master/include/curl/curl.h for details
# https://github.com/curl/curl/blob/master/include/curl/curl.h for details
def easy_codes
[
:ok,
Expand Down Expand Up @@ -103,7 +103,7 @@ def easy_codes
end

# Curl-Multi socket error codes, refer
# https://github.com/bagder/curl/blob/master/include/curl/multi.h for details
# https://github.com/curl/curl/blob/master/include/curl/multi.h for details
def multi_codes
[
:call_multi_perform, -1,
Expand Down
6 changes: 3 additions & 3 deletions lib/ethon/curls/constants.rb
Original file line number Diff line number Diff line change
Expand Up @@ -24,18 +24,18 @@ module Curl
MultiOption = enum(:multi_option, multi_options(:enum).to_a.flatten)

# Used by curl_debug_callback when setting CURLOPT_DEBUGFUNCTION
# https://github.com/bagder/curl/blob/master/include/curl/curl.h#L378 for details
# https://github.com/curl/curl/blob/master/include/curl/curl.h#L378 for details
DebugInfoType = enum(:debug_info_type, debug_info_types)

# :nodoc:
InfoType = enum(info_types.to_a.flatten)

# Info details, refer
# https://github.com/bagder/curl/blob/master/src/tool_writeout.c#L66 for details
# https://github.com/curl/curl/blob/master/src/tool_writeout.c#L66 for details
Info = enum(:info, infos.to_a.flatten)

# Form options, used by FormAdd for temporary storage, refer
# https://github.com/bagder/curl/blob/master/lib/formdata.h#L51 for details
# https://github.com/curl/curl/blob/master/lib/formdata.h#L51 for details
FormOption = enum(:form_option, form_options)

# :nodoc:
Expand Down
2 changes: 1 addition & 1 deletion lib/ethon/curls/form_options.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ module Curls
module FormOptions

# Form options, used by FormAdd for temporary storage, refer
# https://github.com/bagder/curl/blob/master/lib/formdata.h#L51 for details
# https://github.com/curl/curl/blob/master/lib/formdata.h#L51 for details
def form_options
[
:none,
Expand Down
6 changes: 3 additions & 3 deletions lib/ethon/curls/infos.rb
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@ def info_types
}
end

# http://curl.haxx.se/libcurl/c/curl_easy_setopt.html#CURLOPTDEBUGFUNCTION
# https://github.com/bagder/curl/blob/master/include/curl/curl.h#L378
# https://curl.se/libcurl/c/CURLOPT_DEBUGFUNCTION.html
# https://github.com/curl/curl/blob/master/include/curl/curl.h#L378
#
# @example Return debug info types.
# Ethon::Curl.debug_info_types
Expand All @@ -41,7 +41,7 @@ def debug_info_types
end

# Return Info details, refer
# https://github.com/bagder/curl/blob/master/src/tool_writeout.c#L66 for details
# https://github.com/curl/curl/blob/master/src/tool_writeout.c#L66 for details
#
# @example Return infos.
# Ethon::Curl.infos
Expand Down
8 changes: 4 additions & 4 deletions lib/ethon/curls/options.rb
Original file line number Diff line number Diff line change
Expand Up @@ -212,8 +212,8 @@ def self.option_type(type)
end

# Curl multi options, refer
# Defined @ https://github.com/bagder/curl/blob/master/include/curl/multi.h
# Documentation @ http://curl.haxx.se/libcurl/c/curl_multi_setopt.html
# Defined @ https://github.com/curl/curl/blob/master/include/curl/multi.h
# Documentation @ https://curl.se/libcurl/c/curl_multi_setopt.html
option_type :multi

option :multi, :socketfunction, :socket_callback, 1
Expand All @@ -231,8 +231,8 @@ def self.option_type(type)
option :multi, :max_total_connections, :int, 3

# Curl easy options
# Defined @ https://github.com/bagder/curl/blob/master/include/curl/curl.h
# Documentation @ http://curl.haxx.se/libcurl/c/curl_easy_setopt.html
# Defined @ https://github.com/curl/curl/blob/master/include/curl/curl.h
# Documentation @ https://curl.se/libcurl/c/curl_easy_setopt.html
## BEHAVIOR OPTIONS
option_type :easy

Expand Down
6 changes: 3 additions & 3 deletions lib/ethon/easy.rb
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
module Ethon

# This is the class representing the libcurl easy interface
# See http://curl.haxx.se/libcurl/c/libcurl-easy.html for more informations.
# See https://curl.se/libcurl/c/libcurl-easy.html for more informations.
#
# @example You can access the libcurl easy interface through this class, every request is based on it. The simplest setup looks like that:
#
Expand Down Expand Up @@ -197,7 +197,7 @@ class Easy
# * :obsolete: These error codes will never be returned. They were used in an old
# libcurl version and are currently unused.
#
# @see http://curl.haxx.se/libcurl/c/libcurl-errors.html
# @see https://curl.se/libcurl/c/libcurl-errors.html
attr_accessor :return_code

# Initialize a new Easy.
Expand All @@ -214,7 +214,7 @@ class Easy
# @return [ Easy ] A new Easy.
#
# @see Ethon::Easy::Options
# @see http://curl.haxx.se/libcurl/c/curl_easy_setopt.html
# @see https://curl.se/libcurl/c/curl_easy_setopt.html
def initialize(options = {})
Curl.init
set_attributes(options)
Expand Down
2 changes: 1 addition & 1 deletion lib/ethon/easy/informations.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ module Ethon
class Easy

# This module contains the methods to return informations
# from the easy handle. See http://curl.haxx.se/libcurl/c/curl_easy_getinfo.html
# from the easy handle. See https://curl.se/libcurl/c/curl_easy_getinfo.html
# for more information.
module Informations

Expand Down