Kouhei Sutou
null+****@clear*****
Mon Sep 5 10:38:01 JST 2016
Kouhei Sutou 2016-09-05 10:38:01 +0900 (Mon, 05 Sep 2016) New Revision: 69e365fde68cb5bcaac24d07b746c626e3bef389 https://github.com/ranguba/groonga-client/commit/69e365fde68cb5bcaac24d07b746c626e3bef389 Message: Show HTTP before GQTP Because we recommend HTTP. Modified files: README.md Modified: README.md (+10 -10) =================================================================== --- README.md 2016-09-05 10:36:49 +0900 (6392d74) +++ README.md 2016-09-05 10:38:01 +0900 (e49894c) @@ -21,30 +21,30 @@ package. ## Usage Grooga-client handles protocol transparently, so there is only one -difference between GQTP and HTTP examples. - -If you want to use GQTP, specify correct port number to `:port` and -`:protocol => :gqtp` as parameters of `open` method. +difference between HTTP and GQTP examples. If you want to use HTTP, specify correct port number to `:port` and `:protocol => :http` as parameters of `open` method. -### GQTP +If you want to use GQTP, specify correct port number to `:port` and +`:protocol => :gqtp` as parameters of `open` method. -Here is a sample to get list of table via GQTP protocol. +### HTTP - Groonga::Client.open(:host => host, :port => port, :protocol => :gqtp) do |client| +Here is a sample to get list of table via HTTP protocol. + + Groonga::Client.open(:host => host, :port => port, :protocol => :http) do |client| tables = client.table_list tables.each do |table| table.name end end -### HTTP +### GQTP -Here is a sample to get list of table via HTTP protocol. +Here is a sample to get list of table via GQTP protocol. - Groonga::Client.open(:host => host, :port => port, :protocol => :http) do |client| + Groonga::Client.open(:host => host, :port => port, :protocol => :gqtp) do |client| tables = client.table_list tables.each do |table| table.name -------------- next part -------------- HTML����������������������������...Download