Class NHttpClient

java.lang.Object
com.netlang.net.NHttpClient
All Implemented Interfaces:
AutoCloseable
Direct Known Subclasses:
NRestClient

public class NHttpClient extends Object implements AutoCloseable
Class for communicating over HTTP. This interface represents only the most basic contract for HTTP request execution. It imposes no restrictions or particular details on the request execution process and leaves the specifics of state management, authentication and redirect handling up to individual implementations.

		NHttpClient httpClient1 =  new NHttpClient(0);
		NHttpResponse response1=httpClient1.post("https://postman-echo.com/post","some text that is sent from netlang to postman and returned.","application/json");
		int status=response1.getStatusCode();
		if(status == 200){
			String var1=response1.getContent("UTF-8");
			Log.info(var1,null);
		}else{
			String var1=response1.getContent(null);
			Log.info(var1,null);
		}
		httpClient1.close();