Class Response

  • Direct Known Subclasses:
    WebSocket

    public class Response
    extends MapAttributed
    Author:
    Denis Danilin | me@loslobos.ru 26.07.2023 17:28 fair-http-server ☭ sweat and blood
    • Field Detail

      • FEED

        public static final byte[] FEED
    • Constructor Detail

      • Response

        public Response​(int code,
                        String message)
    • Method Detail

      • jsonSuccess

        public static Response jsonSuccess()
      • Created

        public static Response Created()
      • NoContent

        public static Response NoContent()
      • NotFound

        public static Response NotFound()
      • Forbidden

        public static Response Forbidden()
      • ServerError

        public static Response ServerError()
      • setPayload

        public void setPayload​(byte[] payload,
                               org.logdoc.helpers.std.MimeType contentType)
      • header

        public void header​(String name,
                           Object value)
      • size

        public int size()
      • as

        public Response as​(org.logdoc.helpers.std.MimeType mime)
      • is200

        public boolean is200()