This is a Ruby tree! It shows every object from the Ruby Programming Language in a tree format.

origin

        # URI::HTTP.origin

(from ruby core)
### Implementation from HTTP
---
    origin()

---

## Description

Returns the origin for an HTTP uri, as defined in
https://datatracker.ietf.org/doc/html/rfc6454.

Example:

    URI::HTTP.build(host: 'www.example.com', path: '/foo/bar').origin #=> "http://www.example.com"
    URI::HTTP.build(host: 'www.example.com', port: 8000, path: '/foo/bar').origin #=> "http://www.example.com:8000"
    URI::HTTP.build(host: 'www.example.com', port: 80, path: '/foo/bar').origin #=> "http://www.example.com"
    URI::HTTPS.build(host: 'www.example.com', path: '/foo/bar').origin #=> "https://www.example.com"



      

This is MURDOC! A Ruby documentation browser inspired by Smalltalk-80. It allows you to learn about Ruby by browsing through its class hierarchies, and see any of its methods.