Method: Pdfcrowd::HtmlToImageClient#setCustomHttpHeader

Defined in:
lib/pdfcrowd.rb

#setCustomHttpHeader(header) ⇒ Object



2438
2439
2440
2441
2442
2443
2444
2445
# File 'lib/pdfcrowd.rb', line 2438

def setCustomHttpHeader(header)
    unless /^.+:.+$/.match(header)
        raise Error.new(Pdfcrowd.create_invalid_value_message(header, "setCustomHttpHeader", "html-to-image", "A string containing the header name and value separated by a colon.", "set_custom_http_header"), 470);
    end
    
    @fields['custom_http_header'] = header
    self
end