
net.java.html.lib.node.http.Exports Maven / Gradle / Ivy
The newest version!
package net.java.html.lib.node.http;
@java.lang.SuppressWarnings("unchecked")
public final class Exports extends net.java.html.lib.Objs {
private Exports() {
}
private static net.java.html.lib.Objs selfModule() {
return net.java.html.lib.Modules.find("http");
}
public static java.lang.Object createClient(double port, java.lang.String host) {
return net.java.html.lib.Objs.$as(java.lang.Object.class, $Typings$.createClient$1($js(selfModule()), port, host));
}
public static java.lang.Object createClient() {
return net.java.html.lib.Objs.$as(java.lang.Object.class, $Typings$.createClient$2($js(selfModule())));
}
public static java.lang.Object createClient(double port) {
return net.java.html.lib.Objs.$as(java.lang.Object.class, $Typings$.createClient$3($js(selfModule()), port));
}
public static net.java.html.lib.node.http.Server createServer(net.java.html.lib.Function.A2 super net.java.html.lib.node.http.IncomingMessage,? super net.java.html.lib.node.http.ServerResponse,? extends java.lang.Void> requestListener) {
return (net.java.html.lib.node.http.Server)net.java.html.lib.node.http.Server.$as($Typings$.createServer$4($js(selfModule()), net.java.html.lib.Objs.$js(net.java.html.lib.Function.newFunction(requestListener, new Class[] {net.java.html.lib.node.http.IncomingMessage.class, net.java.html.lib.node.http.ServerResponse.class}))));
}
public static net.java.html.lib.node.http.Server createServer() {
return (net.java.html.lib.node.http.Server)net.java.html.lib.node.http.Server.$as($Typings$.createServer$5($js(selfModule())));
}
public static net.java.html.lib.node.http.ClientRequest get(java.lang.Object options, net.java.html.lib.Function.A1 super net.java.html.lib.node.http.IncomingMessage,? extends java.lang.Void> callback) {
return (net.java.html.lib.node.http.ClientRequest)net.java.html.lib.node.http.ClientRequest.$as($Typings$.get$6($js(selfModule()), /* AnyKeyword*/$js(options), net.java.html.lib.Objs.$js(net.java.html.lib.Function.newFunction(callback, new Class[] {net.java.html.lib.node.http.IncomingMessage.class}))));
}
public static net.java.html.lib.node.http.ClientRequest get(java.lang.Object options) {
return (net.java.html.lib.node.http.ClientRequest)net.java.html.lib.node.http.ClientRequest.$as($Typings$.get$7($js(selfModule()), /* AnyKeyword*/$js(options)));
}
public static net.java.html.lib.node.http.ClientRequest request(net.java.html.lib.node.http.RequestOptions options, net.java.html.lib.Function.A1 super net.java.html.lib.node.http.IncomingMessage,? extends java.lang.Void> callback) {
return (net.java.html.lib.node.http.ClientRequest)net.java.html.lib.node.http.ClientRequest.$as($Typings$.request$8($js(selfModule()), /* FirstTypeNode*/$js(options), net.java.html.lib.Objs.$js(net.java.html.lib.Function.newFunction(callback, new Class[] {net.java.html.lib.node.http.IncomingMessage.class}))));
}
public static net.java.html.lib.node.http.ClientRequest request(net.java.html.lib.node.http.RequestOptions options) {
return (net.java.html.lib.node.http.ClientRequest)net.java.html.lib.node.http.ClientRequest.$as($Typings$.request$9($js(selfModule()), /* FirstTypeNode*/$js(options)));
}
public static net.java.html.lib.Objs.Property METHODS = net.java.html.lib.Objs.Property.create(selfModule(), net.java.html.lib.Array.class, "METHODS");
public static net.java.html.lib.Objs.Property STATUS_CODES = net.java.html.lib.Objs.Property.create(selfModule(), net.java.html.lib.Objs.class, "STATUS_CODES");
public static net.java.html.lib.Objs.Property globalAgent = net.java.html.lib.Objs.Property.create(selfModule(), net.java.html.lib.node.http.Agent.class, "globalAgent");
/* already generated METHODS */
/* already generated STATUS_CODES */
/* already generated globalAgent */
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy