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

com.appland.appmap.output.v1.HttpClientRequest Maven / Gradle / Ivy

package com.appland.appmap.output.v1;

import com.alibaba.fastjson.annotation.JSONField;

/**
 * Represents a snapshot of an HTTP client request handled at runtime. Embedded within an
 * {@link Event}.
 * @see Event
 * @see GitHub: AppMap - HTTP client request attributes
 */
public class HttpClientRequest {
  @JSONField(name = "request_method")
  public String method;

  @JSONField(name = "url")
  public String url;

  /**
   * Set the method of this request.
   * @param method The request method
   * @return {@code this}
   * @see GitHub: AppMap - HTTP client request attributes
   */
  public HttpClientRequest setMethod(String method) {
    this.method = method;
    return this;
  }

  /**
   * Set the URL of this request.
   * 
   * @param url The URL requested
   * @return {@code this}
   * @see GitHub:
   *      AppMap - HTTP client request attributes
   */
  public HttpClientRequest setURL(String url) {
    this.url = url;
    return this;
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy