package io.wdd.func.xray.beans.xray.transport;

import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.SuperBuilder;

import java.util.List;

@NoArgsConstructor
@Data
@SuperBuilder(toBuilder = true)
public class HTTPResponseObject {
    @JsonProperty(value = "version", defaultValue = "1.1")
    private String version;
    @JsonProperty("status")
    private String status;
    @JsonProperty("reason")
    private String reason;
    @JsonProperty("headers")
    private HeadersDTO headers;

    @NoArgsConstructor
    @Data
    @SuperBuilder(toBuilder = true)
    public static class HeadersDTO {
        @JsonProperty("Content-Type")
        private List<String> contentType;
        @JsonProperty("Transfer-Encoding")
        private List<String> transferEncoding;
        @JsonProperty("Connection")
        private List<String> connection;
        @JsonProperty("Pragma")
        private String pragma;
    }
}
