$67 GRAYBYTE WORDPRESS FILE MANAGER $52

SERVER : premium201.web-hosting.com #1 SMP Wed Mar 26 12:08:09 UTC 2025
SERVER IP : 172.67.217.254 | ADMIN IP 216.73.216.180
OPTIONS : CRL = ON | WGT = ON | SDO = OFF | PKEX = OFF
DEACTIVATED : mail

/opt/cpanel/ea-ruby27/root/usr/share/ruby/ruby-2.7.8/webrick/

HOME
Current File : /opt/cpanel/ea-ruby27/root/usr/share/ruby/ruby-2.7.8/webrick//httpversion.rb
# frozen_string_literal: false
#--
# HTTPVersion.rb -- presentation of HTTP version
#
# Author: IPR -- Internet Programming with Ruby -- writers
# Copyright (c) 2002 Internet Programming with Ruby writers. All rights
# reserved.
#
# $IPR: httpversion.rb,v 1.5 2002/09/21 12:23:37 gotoyuzo Exp $

module WEBrick

  ##
  # Represents an HTTP protocol version

  class HTTPVersion
    include Comparable

    ##
    # The major protocol version number

    attr_accessor :major

    ##
    # The minor protocol version number

    attr_accessor :minor

    ##
    # Converts +version+ into an HTTPVersion

    def self.convert(version)
      version.is_a?(self) ? version : new(version)
    end

    ##
    # Creates a new HTTPVersion from +version+.

    def initialize(version)
      case version
      when HTTPVersion
        @major, @minor = version.major, version.minor
      when String
        if /^(\d+)\.(\d+)$/ =~ version
          @major, @minor = $1.to_i, $2.to_i
        end
      end
      if @major.nil? || @minor.nil?
        raise ArgumentError,
          format("cannot convert %s into %s", version.class, self.class)
      end
    end

    ##
    # Compares this version with +other+ according to the HTTP specification
    # rules.

    def <=>(other)
      unless other.is_a?(self.class)
        other = self.class.new(other)
      end
      if (ret = @major <=> other.major) == 0
        return @minor <=> other.minor
      end
      return ret
    end

    ##
    # The HTTP version as show in the HTTP request and response.  For example,
    # "1.1"

    def to_s
      format("%d.%d", @major, @minor)
    end
  end
end


Current_dir [ NOT WRITEABLE ] Document_root [ NOT WRITEABLE ]


[ Back ]
NAME
SIZE
LAST TOUCH
USER
CAN-I?
FUNCTIONS
..
--
21 Mar 2024 10.21 AM
root / root
0755
httpauth
--
21 Mar 2024 10.21 AM
root / root
0755
httpservlet
--
21 Mar 2024 10.21 AM
root / root
0755
accesslog.rb
4.332 KB
30 Mar 2023 12.34 PM
root / root
0644
cgi.rb
8.021 KB
30 Mar 2023 12.34 PM
root / root
0644
compat.rb
0.921 KB
30 Mar 2023 12.34 PM
root / root
0644
config.rb
5.697 KB
30 Mar 2023 12.34 PM
root / root
0644
cookie.rb
3.912 KB
30 Mar 2023 12.34 PM
root / root
0644
htmlutils.rb
0.694 KB
30 Mar 2023 12.34 PM
root / root
0644
httpauth.rb
3.362 KB
30 Mar 2023 12.34 PM
root / root
0644
httpproxy.rb
10.273 KB
30 Mar 2023 12.34 PM
root / root
0644
httprequest.rb
15.686 KB
30 Mar 2023 12.34 PM
root / root
0644
httpresponse.rb
13.242 KB
30 Mar 2023 12.34 PM
root / root
0644
https.rb
3.075 KB
30 Mar 2023 12.34 PM
root / root
0644
httpserver.rb
8.171 KB
30 Mar 2023 12.34 PM
root / root
0644
httpservlet.rb
0.688 KB
30 Mar 2023 12.34 PM
root / root
0644
httpstatus.rb
5.239 KB
30 Mar 2023 12.34 PM
root / root
0644
httputils.rb
12.883 KB
30 Mar 2023 12.34 PM
root / root
0644
httpversion.rb
1.604 KB
30 Mar 2023 12.34 PM
root / root
0644
log.rb
3.992 KB
30 Mar 2023 12.34 PM
root / root
0644
server.rb
10.047 KB
30 Mar 2023 12.34 PM
root / root
0644
ssl.rb
7.234 KB
30 Mar 2023 12.34 PM
root / root
0644
utils.rb
6.943 KB
30 Mar 2023 12.34 PM
root / root
0644
version.rb
0.405 KB
30 Mar 2023 12.34 PM
root / root
0644

GRAYBYTE WORDPRESS FILE MANAGER @ 2025 CONTACT ME
Static GIF