All Downloads are FREE. Search and download functionalities are using the official Maven repository.

dev.pellet.server.codec.http.HTTPRequestMessage.kt Maven / Gradle / Ivy

There is a newer version: 0.0.16
Show newest version
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