module Rack::Multipart
A multipart form data parser, adapted from IOWA.
Usually, Rack::Request#POST takes care of calling this.
Constants
- EOL
- Error
-
Prefer to use the
BoundaryTooLongErrorclass orRack::BadRequest. - FWS
- HEADER_VALUE
- MULTIPART
- MULTIPART_BOUNDARY
- MULTIPART_CONTENT_DISPOSITION
- MULTIPART_CONTENT_ID
- MULTIPART_CONTENT_TYPE
Public Class Methods
# File lib/rack/multipart.rb, line 56 def build_multipart(params, first = true) Generator.new(params, first).dump end
# File lib/rack/multipart.rb, line 52 def extract_multipart(request, params = Rack::Utils.default_query_parser) parse_multipart(request.env) end
# File lib/rack/multipart.rb, line 48 def parse_multipart(env, params = Rack::Utils.default_query_parser) Parser.parse_from_env(env, query_parser: params) end