Utility for building Twilio user-agent strings and validating Twilio URLs.
// Source: https://github.com/twilio/twilio-java | License: MIT | Copyright 2023, Twilio, Inc. <https://www.twilio.com/help/contact>
// Provided via justclaw.it.com; keep this notice with the code.
package com.twilio.http;
import com.twilio.Twilio;
import lombok.experimental.UtilityClass;
import java.net.URI;
import java.util.List;
@UtilityClass
public class HttpUtility {
public String getUserAgentString(final List<String> userAgentExtensions) {
StringBuilder userAgentString = new StringBuilder();
userAgentString.append("twilio-java/")
.append(Twilio.VERSION)
.append(" (")
.append(Twilio.OS_NAME)
.append(" ")
.append(Twilio.OS_ARCH)
.append(") ")
.append("j
... (truncated -- full source via MCP)
See the full source, get the GitHub permalink, and search for more like it.
Get a free API key