module Arachnid::Resource::HTML

Overview

TODO Create enumerable methods for the methods that take a block

Direct including types

Defined in:

arachnid/resource/html.cr

Instance Method Summary

Instance Method Detail

def each(&block) #

Enumerates over every URL in the resource.


[View source]
def each_image(&block : URI -> ) #

[View source]
def each_link(&block : URI -> ) #

Enumerates over every link in the resource.


[View source]
def each_mailto(&block) #

Enumerates over every mailto: link in the resource.


[View source]
def each_meta_redirect(&block : URI -> ) #

Enumerates over the meta-redirect links in the resource.


[View source]
def each_redirect(&block : URI -> ) #

Enumerates over every HTTP or meta-redirect link in the resource.


[View source]
def each_resource(&block : URI -> ) #

[View source]
def each_script(&block : URI -> ) #

[View source]
def each_url(&block : URI -> ) #

Enumerates over every URL in the resource.


[View source]
def each_video(&block : URI -> ) #

[View source]
def links #

The links from within the resource.


[View source]
def mailtos #

mailto: links in the resource.


[View source]
def meta_redirect? #

Returns a boolean indicating whether or not resource-level meta redirects are present in this resource.


[View source]
def meta_redirects #

The meta-redirect links of the resource.


[View source]
def redirects_to #

URLs that this document redirects to.


[View source]
def title #

The title of the HTML resource.


[View source]
def to_absolute(link) #

Normalizes and expands a given link into a proper URI.


[View source]
def urls #

Absolute URIs from within the resource.


[View source]