Example #1
0
        public HydraResponse(HydraConnection connection, IHydraItem item)
        {
            Connection = connection;

            ContentType = "application/x-hydra-binary";
            StatusCode  = 200;
            Status      = "OK";

            if (item != null)
            {
                Payload = GetBytesForItem(item);
            }
        }
Example #2
0
 public HydraResponse(HydraConnection connection) : this(connection, null)
 {
 }
        public HydraRequest(HydraConnection connection)
        {
            Connection = connection;

            ParseRequest();
        }