dev.pellet.server.codec.http.HTTPRequestMessage.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pellet-server Show documentation
Show all versions of pellet-server Show documentation
An opinionated Kotlin web framework, with best-practices built-in
package dev.pellet.server.codec.http
import dev.pellet.server.buffer.PelletBufferPooling
data class HTTPRequestMessage(
val requestLine: HTTPRequestLine,
val headers: HTTPHeaders,
val entity: HTTPEntity
) {
internal fun release(
pool: PelletBufferPooling
) {
when (this.entity) {
is HTTPEntity.Content -> {
pool.release(this.entity.buffer)
}
else -> {}
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy