module HTTPX::Plugins::Multipart

  1. lib/httpx/plugins/multipart.rb

This plugin adds support for passing `http-form_data` objects (like file objects) as “multipart/form-data”;

HTTPX.post(URL, form: form: { image: HTTP::FormData::File.new("path/to/file")})

gitlab.com/honeyryderchuck/httpx/wikis/Multipart-Uploads

Methods

Public Class

  1. configure
  2. load_dependencies

Public Class methods

configure (*)
[show source]
   # File lib/httpx/plugins/multipart.rb
51 def self.configure(*)
52   Transcoder.register("form", FormTranscoder)
53 end
load_dependencies (*)
[show source]
   # File lib/httpx/plugins/multipart.rb
47 def self.load_dependencies(*)
48   require "http/form_data"
49 end