/// /// UrlResponseInfo.kt /// This file was generated by nitrogen. DO NOT MODIFY THIS FILE. /// https://github.com/mrousavy/nitro /// Copyright © Marc Rousavy @ Margelo /// package com.margelo.nitro.nitrofetch import androidx.annotation.Keep import com.facebook.proguard.annotations.DoNotStrip /** * Represents the JavaScript object/struct "UrlResponseInfo". */ @DoNotStrip @Keep data class UrlResponseInfo( @DoNotStrip @Keep val url: String, @DoNotStrip @Keep val httpStatusCode: Double, @DoNotStrip @Keep val httpStatusText: String, @DoNotStrip @Keep val allHeaders: Map, @DoNotStrip @Keep val allHeadersAsList: Array, @DoNotStrip @Keep val urlChain: Array, @DoNotStrip @Keep val negotiatedProtocol: String, @DoNotStrip @Keep val proxyServer: String, @DoNotStrip @Keep val receivedByteCount: Double, @DoNotStrip @Keep val wasCached: Boolean ) { /* primary constructor */ companion object { /** * Constructor called from C++ */ @DoNotStrip @Keep @Suppress("unused") @JvmStatic private fun fromCpp(url: String, httpStatusCode: Double, httpStatusText: String, allHeaders: Map, allHeadersAsList: Array, urlChain: Array, negotiatedProtocol: String, proxyServer: String, receivedByteCount: Double, wasCached: Boolean): UrlResponseInfo { return UrlResponseInfo(url, httpStatusCode, httpStatusText, allHeaders, allHeadersAsList, urlChain, negotiatedProtocol, proxyServer, receivedByteCount, wasCached) } } }