Package com.io7m.cardant.server.http

# Interface CAHTTPResponseType

All Known Implementing Classes:
  `CAHTTPResponseFixedSize`, `CAHTTPResponseRedirect`

public sealed interface CAHTTPResponseType permits CAHTTPResponseFixedSize, CAHTTPResponseRedirect
The type of functional servlet responses.

- ## Method Summary

  Modifier and Type
  Method
  Description
  `OptionalLong`
  `contentLengthOptional()`
  `Set<CAHTTPCookieDeclaration>`
  `cookies()`
  `int`
  `statusCode()`

- ## Method Details

  - ### statusCode

    int statusCode()
    Returns:
      The response status code

  - ### contentLengthOptional

    OptionalLong contentLengthOptional()
    Returns:
      The length of the content, if one is known

  - ### cookies

    Set<CAHTTPCookieDeclaration> cookies()
    Returns:
      The cookies to set