Method: Pdfcrowd::HtmlToImageClient#setHttpsProxy

Defined in:
lib/pdfcrowd.rb

#setHttpsProxy(proxy) ⇒ Object



2608
2609
2610
2611
2612
2613
2614
2615
# File 'lib/pdfcrowd.rb', line 2608

def setHttpsProxy(proxy)
    unless /(?i)^([a-z0-9]+(-[a-z0-9]+)*\.)+[a-z0-9]{1,}:\d+$/.match(proxy)
        raise Error.new(Pdfcrowd.create_invalid_value_message(proxy, "setHttpsProxy", "html-to-image", "The value must have format DOMAIN_OR_IP_ADDRESS:PORT.", "set_https_proxy"), 470);
    end
    
    @fields['https_proxy'] = proxy
    self
end