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

net.java.html.lib.node.http.IncomingMessage Maven / Gradle / Ivy

The newest version!
package net.java.html.lib.node.http;
public class IncomingMessage extends net.java.html.lib.node.events.EventEmitter {
  protected IncomingMessage(net.java.html.lib.Objs.Constructor c, java.lang.Object js) {
    super(c, js);
  }
  private static final class $Constructor extends net.java.html.lib.Objs.Constructor {
    $Constructor() {
      super(IncomingMessage.class);
    }
    @Override
    public IncomingMessage create(java.lang.Object obj) {
      return obj == null ? null : new IncomingMessage(this, obj);
    }
  };
  private static final $Constructor $AS = new $Constructor();
  public static IncomingMessage $as(java.lang.Object obj) {
    return $AS.create(obj);
  }
  public net.java.html.lib.Objs.Property httpVersion = net.java.html.lib.Objs.Property.create(this, java.lang.String.class, "httpVersion");
  public java.lang.String httpVersion() { return httpVersion.get(); }
  public net.java.html.lib.Objs.Property headers = net.java.html.lib.Objs.Property.create(this, java.lang.Object.class, "headers");
  public net.java.html.lib.Objs.Property rawHeaders = net.java.html.lib.Objs.Property.create(this, net.java.html.lib.Array.class, "rawHeaders");
  public java.lang.String[] rawHeaders() { return rawHeaders.get(); }
  public net.java.html.lib.Objs.Property trailers = net.java.html.lib.Objs.Property.create(this, java.lang.Object.class, "trailers");
  public net.java.html.lib.Objs.Property rawTrailers = net.java.html.lib.Objs.Property.create(this, java.lang.Object.class, "rawTrailers");
  /**
  * Only valid for request obtained from http.Server.
  */
  public net.java.html.lib.Objs.Property method = net.java.html.lib.Objs.Property.create(this, java.lang.String.class, "method");
  public java.lang.String method() { return method.get(); }
  /**
  * Only valid for request obtained from http.Server.
  */
  public net.java.html.lib.Objs.Property url = net.java.html.lib.Objs.Property.create(this, java.lang.String.class, "url");
  public java.lang.String url() { return url.get(); }
  /**
  * Only valid for response obtained from http.ClientRequest.
  */
  public net.java.html.lib.Objs.Property statusCode = net.java.html.lib.Objs.Property.create(this, java.lang.Number.class, "statusCode");
  public java.lang.Number statusCode() { return statusCode.get(); }
  /**
  * Only valid for response obtained from http.ClientRequest.
  */
  public net.java.html.lib.Objs.Property statusMessage = net.java.html.lib.Objs.Property.create(this, java.lang.String.class, "statusMessage");
  public java.lang.String statusMessage() { return statusMessage.get(); }
  public net.java.html.lib.Objs.Property socket = net.java.html.lib.Objs.Property.create(this, net.java.html.lib.node.net.Socket.class, "socket");
  public net.java.html.lib.node.net.Socket socket() { return socket.get(); }
  public net.java.html.lib.node.NodeJS.Timer setTimeout(double msecs, net.java.html.lib.Function callback) {
    return (net.java.html.lib.node.NodeJS.Timer)net.java.html.lib.node.NodeJS.Timer.$as($Typings$.setTimeout$46($js(this), msecs, /* FirstTypeNode*/$js(callback)));
  }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy