PHP 8.2.31
Preview: build-c.yaml Size: 1.18 KB
//proc/thread-self/root/opt/alt/ruby18/share/ri/1.8/system/URI/HTTP/build-c.yaml

--- !ruby/object:RI::MethodDescription 
aliases: []

block_params: 
comment: 
- !ruby/struct:SM::Flow::H 
  level: 2
  text: Description
- !ruby/struct:SM::Flow::P 
  body: Create a new URI::HTTP object from components, with syntax checking.
- !ruby/struct:SM::Flow::P 
  body: The components accepted are userinfo, host, port, path, query and fragment.
- !ruby/struct:SM::Flow::P 
  body: The components should be provided either as an Array, or as a Hash with keys formed by preceding the component names with a colon.
- !ruby/struct:SM::Flow::P 
  body: If an Array is used, the components must be passed in the order [userinfo, host, port, path, query, fragment].
- !ruby/struct:SM::Flow::P 
  body: "Example:"
- !ruby/struct:SM::Flow::VERB 
  body: "    newuri = URI::HTTP.build({:host => 'www.example.com',\n      :path> => '/foo/bar'})\n\n    newuri = URI::HTTP.build([nil, "www.example.com", nil, "/path",\n      "query", 'fragment'])\n"
- !ruby/struct:SM::Flow::P 
  body: Currently, if passed userinfo components this method generates invalid HTTP URIs as per RFC 1738.
full_name: URI::HTTP::build
is_singleton: true
name: build
params: (args)
visibility: public

Directory Contents

Dirs: 0 × Files: 4

Name Size Perms Modified Actions
1.18 KB lrw-r--r-- 2023-07-26 13:47:23
Edit Download
1021 B lrw-r--r-- 2023-07-26 13:47:23
Edit Download
842 B lrw-r--r-- 2023-07-26 13:47:23
Edit Download
498 B lrw-r--r-- 2023-07-26 13:47:23
Edit Download

If ZipArchive is unavailable, a .tar will be created (no compression).