test_class.declarator: server = new MockWebServer()
test_class.modifier: private final
test_class.original_string: private final MockWebServer server = new MockWebServer();
test_class.type: MockWebServer
test_class.var_name: server
test_class.file: http-api/src/test/java/net/runelite/http/api/RuneLiteAPITest.java
test_class.identifier: RuneLiteAPITest
test_case.body: @Test
  	public void testUserAgent() throws IOException, InterruptedException
  	{
  		Request request = new Request.Builder()
  			.url(server.url("/").url())
  			.build();
  		RuneLiteAPI.CLIENT.newCall(request).execute().close();
  
  		// rest of UA depends on if git is found
  		assertTrue(server.takeRequest().getHeader("User-Agent").startsWith("RuneLite/" + RuneLiteAPI.getVersion()));
  	}
test_case.class_method_signature: RuneLiteAPITest.testUserAgent()
test_case.full_signature: @Test public void testUserAgent()
test_case.identifier: testUserAgent
test_case.invocations: build url url url close execute newCall assertTrue startsWith getHeader takeRequest getVersion
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void testUserAgent()
focal_class.declarator: logger = LoggerFactory.getLogger(RuneLiteAPI.class)
focal_class.modifier: private static final
focal_class.original_string: private static final Logger logger = LoggerFactory.getLogger(RuneLiteAPI.class);
focal_class.type: Logger
focal_class.var_name: logger
focal_class.declarator: RUNELITE_AUTH = "RUNELITE-AUTH"
focal_class.modifier: public static final
focal_class.original_string: public static final String RUNELITE_AUTH = "RUNELITE-AUTH";
focal_class.type: String
focal_class.var_name: RUNELITE_AUTH
focal_class.declarator: RUNELITE_MACHINEID = "RUNELITE-MACHINEID"
focal_class.modifier: public static final
focal_class.original_string: public static final String RUNELITE_MACHINEID = "RUNELITE-MACHINEID";
focal_class.type: String
focal_class.var_name: RUNELITE_MACHINEID
focal_class.declarator: CLIENT
focal_class.modifier: public static final
focal_class.original_string: public static final OkHttpClient CLIENT;
focal_class.type: OkHttpClient
focal_class.var_name: CLIENT
focal_class.declarator: GSON = new Gson()
focal_class.modifier: public static final
focal_class.original_string: public static final Gson GSON = new Gson();
focal_class.type: Gson
focal_class.var_name: GSON
focal_class.declarator: JSON = MediaType.parse("application/json")
focal_class.modifier: public static final
focal_class.original_string: public static final MediaType JSON = MediaType.parse("application/json");
focal_class.type: MediaType
focal_class.var_name: JSON
focal_class.declarator: userAgent
focal_class.modifier: public static
focal_class.original_string: public static String userAgent;
focal_class.type: String
focal_class.var_name: userAgent
focal_class.declarator: BASE = "https://api.runelite.net"
focal_class.modifier: private static final
focal_class.original_string: private static final String BASE = "https://api.runelite.net";
focal_class.type: String
focal_class.var_name: BASE
focal_class.declarator: WSBASE = "https://api.runelite.net/ws"
focal_class.modifier: private static final
focal_class.original_string: private static final String WSBASE = "https://api.runelite.net/ws";
focal_class.type: String
focal_class.var_name: WSBASE
focal_class.declarator: STATICBASE = "https://static.runelite.net"
focal_class.modifier: private static final
focal_class.original_string: private static final String STATICBASE = "https://static.runelite.net";
focal_class.type: String
focal_class.var_name: STATICBASE
focal_class.declarator: properties = new Properties()
focal_class.modifier: private static final
focal_class.original_string: private static final Properties properties = new Properties();
focal_class.type: Properties
focal_class.var_name: properties
focal_class.declarator: version
focal_class.modifier: private static
focal_class.original_string: private static String version;
focal_class.type: String
focal_class.var_name: version
focal_class.declarator: rsVersion
focal_class.modifier: private static
focal_class.original_string: private static int rsVersion;
focal_class.type: int
focal_class.var_name: rsVersion
focal_class.file: http-api/src/main/java/net/runelite/http/api/RuneLiteAPI.java
focal_class.identifier: RuneLiteAPI
focal_class.class_method_signature: RuneLiteAPI.getSessionBase()
focal_class.full_signature: public static HttpUrl getSessionBase()
focal_class.identifier: getSessionBase
focal_class.modifiers: public static
focal_class.parameters: ()
focal_class.return: HttpUrl
focal_class.signature: HttpUrl getSessionBase()
focal_class.class_method_signature: RuneLiteAPI.getApiBase()
focal_class.full_signature: public static HttpUrl getApiBase()
focal_class.identifier: getApiBase
focal_class.modifiers: public static
focal_class.parameters: ()
focal_class.return: HttpUrl
focal_class.signature: HttpUrl getApiBase()
focal_class.class_method_signature: RuneLiteAPI.getStaticBase()
focal_class.full_signature: public static HttpUrl getStaticBase()
focal_class.identifier: getStaticBase
focal_class.modifiers: public static
focal_class.parameters: ()
focal_class.return: HttpUrl
focal_class.signature: HttpUrl getStaticBase()
focal_class.class_method_signature: RuneLiteAPI.getWsEndpoint()
focal_class.full_signature: public static HttpUrl getWsEndpoint()
focal_class.identifier: getWsEndpoint
focal_class.modifiers: public static
focal_class.parameters: ()
focal_class.return: HttpUrl
focal_class.signature: HttpUrl getWsEndpoint()
focal_class.class_method_signature: RuneLiteAPI.getVersion()
focal_class.full_signature: public static String getVersion()
focal_class.identifier: getVersion
focal_class.modifiers: public static
focal_class.parameters: ()
focal_class.return: String
focal_class.signature: String getVersion()
focal_class.class_method_signature: RuneLiteAPI.setVersion(String version)
focal_class.full_signature: public static void setVersion(String version)
focal_class.identifier: setVersion
focal_class.modifiers: public static
focal_class.parameters: (String version)
focal_class.return: void
focal_class.signature: void setVersion(String version)
focal_class.class_method_signature: RuneLiteAPI.getRsVersion()
focal_class.full_signature: public static int getRsVersion()
focal_class.identifier: getRsVersion
focal_class.modifiers: public static
focal_class.parameters: ()
focal_class.return: int
focal_class.signature: int getRsVersion()
focal_method.body: public static String getVersion()
  	{
  		return version;
  	}
focal_method.class_method_signature: RuneLiteAPI.getVersion()
focal_method.full_signature: public static String getVersion()
focal_method.identifier: getVersion
focal_method.modifiers: public static
focal_method.parameters: ()
focal_method.return: String
focal_method.signature: String getVersion()