Closed wsargent closed 9 years ago
I'd like to create a protocol relative URL from an absolute URL, but I don't see a way to do that from the documentation. Is this possible?
Try this in the REPL:
import com.netaporter.uri._ val absoluteUri = Uri.parse("scheme://host/path") val protocolRelativeUri = absoluteUri.copy(scheme=None)
I'd like to create a protocol relative URL from an absolute URL, but I don't see a way to do that from the documentation. Is this possible?