[#10209] Market for XML Web stuff — Matt Sergeant <matt@...>

I'm trying to get a handle on what the size of the market for AxKit would be

15 messages 2001/02/01

[#10238] RFC: RubyVM (long) — Robert Feldt <feldt@...>

Hi,

20 messages 2001/02/01
[#10364] Re: RFC: RubyVM (long) — Mathieu Bouchard <matju@...> 2001/02/05

[#10708] Suggestion for threading model — Stephen White <spwhite@...>

I've been playing around with multi-threading. I notice that there are

11 messages 2001/02/11

[#10853] Re: RubyChangeRequest #U002: new proper name for Hash#indexes, Array#indexes — "Mike Wilson" <wmwilson01@...>

10 messages 2001/02/14

[#11037] to_s and << — "Brent Rowland" <tarod@...>

list = [1, 2.3, 'four', false]

15 messages 2001/02/18

[#11094] Re: Summary: RCR #U002 - proper new name fo r indexes — Aleksi Niemel<aleksi.niemela@...>

> On Mon, 19 Feb 2001, Yukihiro Matsumoto wrote:

12 messages 2001/02/19

[#11131] Re: Summary: RCR #U002 - proper new name fo r indexes — "Conrad Schneiker" <schneik@...>

Robert Feldt wrote:

10 messages 2001/02/19

[#11251] Programming Ruby is now online — Dave Thomas <Dave@...>

36 messages 2001/02/21

[#11469] XML-RPC and KDE — schuerig@... (Michael Schuerig)

23 messages 2001/02/24
[#11490] Re: XML-RPC and KDE — schuerig@... (Michael Schuerig) 2001/02/24

Michael Neumann <neumann@s-direktnet.de> wrote:

[#11491] Negative Reviews for Ruby and Programming Ruby — Jim Freeze <jim@...> 2001/02/24

Hi all:

[#11633] RCR: shortcut for instance variable initialization — Dave Thomas <Dave@...>

13 messages 2001/02/26

[#11652] RE: RCR: shortcut for instance variable initialization — Michael Davis <mdavis@...>

I like it!

14 messages 2001/02/27

[#11700] Starting Once Again — Ron Jeffries <ronjeffries@...>

OK, I'm starting again with Ruby. I'm just assuming that I've

31 messages 2001/02/27
[#11712] RE: Starting Once Again — "Aaron Hinni" <aaron@...> 2001/02/27

> 2. So far I think running under TextPad will be better than running

[#11726] Re: Starting Once Again — Aleksi Niemel<zak@...> 2001/02/28

On Wed, 28 Feb 2001, Aaron Hinni wrote:

[ruby-talk:11584] net/http is going to change

From: Minero Aoki <aamine@...>
Date: 2001-02-26 12:37:42 UTC
List: ruby-talk #11584
Hi all,

I'm going to make big change on net/http in Ruby 1.7 and later
version. Changes are below:

  *  HTTP#get, head, post never raise ProtocolError.
  *  HTTP#get, head, post does return only ONE object, a HTTPResponse.
  *  HTTPResponseReceiver is joined into HTTPResponse.
  *  HTTP request object, HTTP::Get, Head, Post.

The aim of these changes are for almost fixing design corruption.
It's totally my fault. sigh.

But this change will break many scripts, so I make a transitional
period. To use current net/http features, insert this line before
'Net::HTTP.new':

  Net::HTTP.version_1_1

then existing applications (will) work without change on ruby 1.7
or later.

Or if you want to use new features, insert this line instead:

  Net::HTTP.version_1_2

(call this method at your own lisk; new feature is still moving.
 If you want compatibility, use version_1_1.)


For example:

  require 'net/http'

  Net::HTTP.version_1_1
  http = Net::HTTP.new(addr, port)    # not thread-safe  :-(
               :
  http.start {
    response, body = http.get( path )
  }
  response['content-type']
  response.body


another example:

  require 'net/http'

  Net::HTTP.version_1_1
  http = Net::HTTP.new(addr, port)
               :
  http.start {
    response = http.get2( path ) {|r|
      # the TYPE of "r" is indefinite, but the methods which
      # the object can respond to are definite.
      r.response['content-length']
      r.read_body
      r.body
    }
    response.body
  }


An example of new features:

  require 'net/http'

  Net::HTTP.version_1_2

  req = Net::HTTP::Get.new
  req.range = 0...500        # get first 500 bytes

  Net::HTTP.start( addr, port ) do |http|
    http.request( req ) do |response|
      p response['content-type']
      p response['content-length]
      response.read_body
    end
  end


At last, new net/http features are still moving. If you have any
idea, feel free to request here (You can find new net/http code
on main trunk of Ruby CVS).


Minero Aoki

In This Thread

Prev Next