晋太元中,武陵人捕鱼为业。缘溪行,忘路之远近。忽逢桃花林,夹岸数百步,中无杂树,芳草鲜美,落英缤纷。渔人甚异之,复前行,欲穷其林。 林尽水源,便得一山,山有小口,仿佛若有光。便舍船,从口入。初极狭,才通人。复行数十步,豁然开朗。土地平旷,屋舍俨然,有良田、美池、桑竹之属。阡陌交通,鸡犬相闻。其中往来种作,男女衣着,悉如外人。黄发垂髫,并怡然自乐。 见渔人,乃大惊,问所从来。具答之。便要还家,设酒杀鸡作食。村中闻有此人,咸来问讯。自云先世避秦时乱,率妻子邑人来此绝境,不复出焉,遂与外人间隔。问今是何世,乃不知有汉,无论魏晋。此人一一为具言所闻,皆叹惋。余人各复延至其家,皆出酒食。停数日,辞去。此中人语云:“不足为外人道也。”(间隔 一作:隔绝) 既出,得其船,便扶向路,处处志之。及郡下,诣太守,说如此。太守即遣人随其往,寻向所志,遂迷,不复得路。 南阳刘子骥,高尚士也,闻之,欣然规往。未果,寻病终。后遂无问津者。
| DIR:/opt/alt/ruby18/share/ri/1.8/system/Net/HTTPResponse/ |
| Current File : //opt/alt/ruby18/share/ri/1.8/system/Net/HTTPResponse/cdesc-HTTPResponse.yaml |
--- !ruby/object:RI::ClassDescription
attributes:
- !ruby/object:RI::Attribute
comment:
- !ruby/struct:SM::Flow::P
body: HTTP result code string. For example, '302'. You can also determine the response type by which response subclass the response object is an instance of.
name: code
rw: R
- !ruby/object:RI::Attribute
comment:
- !ruby/struct:SM::Flow::P
body: The HTTP version supported by the server.
name: http_version
rw: R
- !ruby/object:RI::Attribute
comment:
- !ruby/struct:SM::Flow::P
body: HTTP result message. For example, 'Not Found'.
name: message
rw: R
class_methods:
- !ruby/object:RI::MethodSummary
name: body_permitted?
- !ruby/object:RI::MethodSummary
name: each_response_header
- !ruby/object:RI::MethodSummary
name: read_status_line
- !ruby/object:RI::MethodSummary
name: response_class
comment:
- !ruby/struct:SM::Flow::P
body: HTTP response class. This class wraps response header and entity. Mixes in the HTTPHeader module, which provides access to response header values both via hash-like methods and individual readers. Note that each possible HTTP response code defines its own HTTPResponse subclass. These are listed below. All classes are defined under the Net module. Indentation indicates inheritance.
- !ruby/struct:SM::Flow::VERB
body: " xxx HTTPResponse\n\n 1xx HTTPInformation\n 100 HTTPContinue\n 101 HTTPSwitchProtocol\n\n 2xx HTTPSuccess\n 200 HTTPOK\n 201 HTTPCreated\n 202 HTTPAccepted\n 203 HTTPNonAuthoritativeInformation\n 204 HTTPNoContent\n 205 HTTPResetContent\n 206 HTTPPartialContent\n\n 3xx HTTPRedirection\n 300 HTTPMultipleChoice\n 301 HTTPMovedPermanently\n 302 HTTPFound\n 303 HTTPSeeOther\n 304 HTTPNotModified\n 305 HTTPUseProxy\n 307 HTTPTemporaryRedirect\n\n 4xx HTTPClientError\n 400 HTTPBadRequest\n 401 HTTPUnauthorized\n 402 HTTPPaymentRequired\n 403 HTTPForbidden\n 404 HTTPNotFound\n 405 HTTPMethodNotAllowed\n 406 HTTPNotAcceptable\n 407 HTTPProxyAuthenticationRequired\n 408 HTTPRequestTimeOut\n 409 HTTPConflict\n 410 HTTPGone\n 411 HTTPLengthRequired\n 412 HTTPPreconditionFailed\n 413 HTTPRequestEntityTooLarge\n 414 HTTPRequestURITooLong\n 415 HTTPUnsupportedMediaType\n 416 HTTPRequestedRangeNotSatisfiable\n 417 HTTPExpectationFailed\n\n 5xx HTTPServerError\n 500 HTTPInternalServerError\n 501 HTTPNotImplemented\n 502 HTTPBadGateway\n 503 HTTPServiceUnavailable\n 504 HTTPGatewayTimeOut\n 505 HTTPVersionNotSupported\n\n xxx HTTPUnknownResponse\n"
constants:
- !ruby/object:RI::Constant
comment:
name: CODE_CLASS_TO_OBJ
value: "{ '1' => HTTPInformation, '2' => HTTPSuccess, '3' => HTTPRedirection, '4' => HTTPClientError, '5' => HTTPServerError"
- !ruby/object:RI::Constant
comment:
name: CODE_TO_OBJ
value: "{ '100' => HTTPContinue, '101' => HTTPSwitchProtocol, '200' => HTTPOK, '201' => HTTPCreated, '202' => HTTPAccepted, '203' => HTTPNonAuthoritativeInformation, '204' => HTTPNoContent, '205' => HTTPResetContent, '206' => HTTPPartialContent, '300' => HTTPMultipleChoice, '301' => HTTPMovedPermanently, '302' => HTTPFound, '303' => HTTPSeeOther, '304' => HTTPNotModified, '305' => HTTPUseProxy, '307' => HTTPTemporaryRedirect, '400' => HTTPBadRequest, '401' => HTTPUnauthorized, '402' => HTTPPaymentRequired, '403' => HTTPForbidden, '404' => HTTPNotFound, '405' => HTTPMethodNotAllowed, '406' => HTTPNotAcceptable, '407' => HTTPProxyAuthenticationRequired, '408' => HTTPRequestTimeOut, '409' => HTTPConflict, '410' => HTTPGone, '411' => HTTPLengthRequired, '412' => HTTPPreconditionFailed, '413' => HTTPRequestEntityTooLarge, '414' => HTTPRequestURITooLong, '415' => HTTPUnsupportedMediaType, '416' => HTTPRequestedRangeNotSatisfiable, '417' => HTTPExpectationFailed, '500' => HTTPInternalServerError, '501' => HTTPNotImplemented, '502' => HTTPBadGateway, '503' => HTTPServiceUnavailable, '504' => HTTPGatewayTimeOut, '505' => HTTPVersionNotSupported"
full_name: Net::HTTPResponse
includes:
- !ruby/object:RI::IncludedModule
name: HTTPHeader
instance_methods:
- !ruby/object:RI::MethodSummary
name: body
- !ruby/object:RI::MethodSummary
name: entity
- !ruby/object:RI::MethodSummary
name: inspect
- !ruby/object:RI::MethodSummary
name: procdest
- !ruby/object:RI::MethodSummary
name: read_body
- !ruby/object:RI::MethodSummary
name: read_body_0
- !ruby/object:RI::MethodSummary
name: read_chunked
- !ruby/object:RI::MethodSummary
name: stream_check
- !ruby/object:RI::MethodSummary
name: to_ary
- !ruby/object:RI::MethodSummary
name: value
name: HTTPResponse
superclass: Object
|