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

com.sendgrid.Request Maven / Gradle / Ivy

There is a newer version: 4.5.1
Show newest version
package com.sendgrid;

import java.util.Map;

/**
  * Class Response provides a standard interface to an API's HTTP request.
  */
public class Request {
  public Method method;
  public String baseUri;
  public String endpoint;
  public String body;
  public Map headers;
  public Map queryParams;

  public Request() {
    this.reset();
  }

  /**
  * Place the object into an empty state.
  */
  public void reset() {
    this.method = null;
    this.baseUri = "";
    this.endpoint = "";
    this.body = "";
    this.headers = null;
    this.queryParams = null;
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy