Skip to content

Commit f696e9c

Browse files
committed
Comments
1 parent ce8e102 commit f696e9c

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

server/netty-server/sync/src/main/scala/sttp/tapir/server/netty/sync/NettySyncServerOptions.scala

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,12 @@ import sttp.tapir.{Defaults, TapirFile}
1111

1212
case class NettySyncServerOptions(
1313
interceptors: List[Interceptor[Identity]],
14+
/** Used to create temporary files to store file bodies, as well as small multipart attributes (smaller than `multipartMinSizeForDisk`)
15+
* that are specified to be stored as a file.
16+
*/
1417
createFile: ServerRequest => TapirFile,
1518
deleteFile: TapirFile => Unit,
19+
/** Used to configure Netty's multipart parser. Large parts and file uploads will be stored in this directory. */
1620
multipartTempDirectory: Option[TapirFile],
1721
multipartMinSizeForDisk: Option[Long],
1822
/** When a request is cancelled (due to client closing the connection or a timeout), should the server's logic be interrupted (using

0 commit comments

Comments
 (0)