oneshot send [file|dir]
Send a file or directory to the client, if no file or directory is given, stdin will be used. When sending from stdin, requests are blocked until an EOF is received; content from stdin is buffered for subsequent requests. If a directory is given, it will be archived and sent to the client; oneshot does not support sending unarchived directories.
Flag | Configuration File | Description |
---|---|---|
-a, --archive-method |
.archiveMethod |
Archive method to use, one of zip , tar or tar.gz (default: tar.gz ) |
-D, --no-download |
.noDownload |
Do not trigger a download on connected browsers. |
-m, --mime |
.mime |
MIME type of the file presented to the client. |
-n, --name |
.name |
Name of the file presented to the client. |
--status-code |
.statusCode |
HTTP status code to return to the client (default: 200 ) |
-H, --header |
.header |
HTTP header to return to the client, can be specified multiple times. (Format: HEADER_NAME=HEADER_VALUE ) |