io.appium.mitmproxy.InterceptedMessage Maven / Gradle / Ivy
package io.appium.mitmproxy;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.databind.ObjectMapper;
import lombok.Data;
import java.net.URL;
import java.util.List;
@Data
public class InterceptedMessage {
private final static ObjectMapper objectMapper = new ObjectMapper();
private Request request;
private Response response;
@Data
static class Request {
private String method;
private String url;
private List headers;
@JsonProperty(access = JsonProperty.Access.WRITE_ONLY)
private byte[] body;
}
@Data
public static class Response {
@JsonProperty("status_code")
private int statusCode;
private List headers;
@JsonProperty(access = JsonProperty.Access.WRITE_ONLY)
private byte[] body;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy