Class: Vertx::HttpServerFileUpload
- Inherits:
-
Object
- Object
- Vertx::HttpServerFileUpload
- Includes:
- ReadStream
- Defined in:
- src/main/api_shim/core/http.rb
Overview
An Upload which was found in the HttpServerMultipartRequest while handling it.
Instance Method Summary (collapse)
-
- (Object) charset
Returns the charset for the upload.
-
- (Object) content_transfer_encoding
Returns the contentTransferEncoding for the upload.
-
- (Object) content_type
Returns the contentType for the upload.
-
- (Object) filename
Returns the filename of the attribute.
-
- (Object) name
Returns the name of the attribute.
-
- (Object) size
Returns the size of the upload (in bytes).
-
- (Object) stream_to_file_system(filename)
Stream the content of this upload to the given filename.
Methods included from ReadStream
#data_handler, #end_handler, #exception_handler, #pause, #resume
Instance Method Details
- (Object) charset
Returns the charset for the upload
1226 1227 1228 |
# File 'src/main/api_shim/core/http.rb', line 1226 def charset @j_del.charset().toString() end |
- (Object) content_transfer_encoding
Returns the contentTransferEncoding for the upload
1221 1222 1223 |
# File 'src/main/api_shim/core/http.rb', line 1221 def content_transfer_encoding @j_del.contentTransferEncoding() end |
- (Object) content_type
Returns the contentType for the upload
1216 1217 1218 |
# File 'src/main/api_shim/core/http.rb', line 1216 def content_type @j_del.contentType() end |
- (Object) filename
Returns the filename of the attribute
1206 1207 1208 |
# File 'src/main/api_shim/core/http.rb', line 1206 def filename @j_del.filename() end |
- (Object) name
Returns the name of the attribute
1211 1212 1213 |
# File 'src/main/api_shim/core/http.rb', line 1211 def name @j_del.name() end |
- (Object) size
Returns the size of the upload (in bytes)
1231 1232 1233 |
# File 'src/main/api_shim/core/http.rb', line 1231 def size @j_del.size() end |
- (Object) stream_to_file_system(filename)
Stream the content of this upload to the given filename.
1200 1201 1202 1203 |
# File 'src/main/api_shim/core/http.rb', line 1200 def stream_to_file_system(filename) @j_del.streamToFileSystem(filename) self end |