/*
 * Javalin - https://javalin.io
 * Copyright 2017 David Åse
 * Licensed under Apache 2.0: https://github.com/tipsy/javalin/blob/master/LICENSE
 */

package io.javalin

import java.io.InputStream

/**
 * Description of a file uploaded as a multipart content
 * @see Context.uploadedFile
 * @see <a href="https://javalin.io/documentation#faq">Uploads in FAQ</a>
 */
data class UploadedFile(val contentType: String, val content: InputStream, val name: String, val extension: String)

/**
 * Internal request logging level. Default is [LogLevel.OFF]
 * @see Javalin.enableStandardRequestLogging
 * @see Javalin.requestLogLevel
 */
enum class LogLevel { EXTENSIVE, STANDARD, MINIMAL, OFF; }

/**
 * Auth credentials for basic HTTP authorization.
 * @see Context.basicAuthCredentials
 * @see <a href="https://javalin.io/documentation#faq">Authorization in FAQ</a>
 */
data class BasicAuthCredentials(val username: String, val password: String)

/*
 * Javalin - https://javalin.io
 * Copyright 2017 David Åse
 * Licensed under Apache 2.0: https://github.com/tipsy/javalin/blob/master/LICENSE
 */

package io.javalin

import java.io.InputStream

/**
 * Data class containing the content and meta-info of an uploaded file.
 * [contentType]: the content-type passed by the client
 * [inputStream]: the file-content as an [InputStream]
 * [name]: the file-name reported by the client
 * [extension]: the file-extension, extracted from the [name]
 * @see Context.uploadedFile
 * @see <a href="https://javalin.io/documentation#faq">Uploads in FAQ</a>
 */
data class UploadedFile(val contentType: String, val content: InputStream, val name: String, val extension: String)

/**
 * Internal request logging level. Default is [LogLevel.OFF]
 * @see Javalin.enableStandardRequestLogging
 * @see Javalin.requestLogLevel
 */
enum class LogLevel { EXTENSIVE, STANDARD, MINIMAL, OFF; }

/**
 * Auth credentials for basic HTTP authorization.
 * Contains the Base64 decoded [username] and [password] from the Authorization header.
 * @see Context.basicAuthCredentials
 */
data class BasicAuthCredentials(val username: String, val password: String)

Update javadoc for data classes
[javadoc] Update javadoc for data classes

tipsy/javalin,tipsy/javalin,tipsy/javalin,tipsy/javalin