Sha256: fb5e8c51a40ce8065115627d25b5194963c8d21cf7b618c19e5669dcb0987316
Contents?: true
Size: 430 Bytes
Versions: 138
Compression:
Stored size: 430 Bytes
Contents
# If you are uploading file in params, multipart will used as content-type automatically HTTParty.post( 'http://localhost:3000/user', body: { name: 'Foo Bar', email: 'example@email.com', avatar: File.open('/full/path/to/avatar.jpg') } ) # However, you can force it yourself HTTParty.post( 'http://localhost:3000/user', multipart: true, body: { name: 'Foo Bar', email: 'example@email.com' } )
Version data entries
138 entries across 112 versions & 7 rubygems