All Downloads are FREE. Search and download functionalities are using the official Maven repository.

xyz.block.ftl.runtime.builtin.HttpResponse Maven / Gradle / Ivy

The newest version!
package xyz.block.ftl.runtime.builtin;

import java.util.List;
import java.util.Map;

import com.fasterxml.jackson.annotation.JsonRawValue;

/**
 * TODO: should this be generated
 */
public class HttpResponse {
    private long status;
    private Map> headers;
    @JsonRawValue
    private String body;
    private Throwable error;

    public long getStatus() {
        return status;
    }

    public void setStatus(long status) {
        this.status = status;
    }

    public Map> getHeaders() {
        return headers;
    }

    public void setHeaders(Map> headers) {
        this.headers = headers;
    }

    public String getBody() {
        return body;
    }

    public void setBody(String body) {
        this.body = body;
    }

    public Throwable getError() {
        return error;
    }

    public void setError(Throwable error) {
        this.error = error;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy