Module: HTTP::Base64

Included in:
Chainable, Request
Defined in:
lib/http/base64.rb

Overview

Strict Base64 encoding utilities

Class Method Summary collapse

Class Method Details

.encode64(input) ⇒ String

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Encode data using strict Base64 encoding

Examples:

HTTP::Base64.encode64("hello")

Parameters:

  • input (String)

    data to encode

Returns:

  • (String)


18
19
20
# File 'lib/http/base64.rb', line 18

def encode64(input)
  [input].pack("m0")
end