toggle menu
stripe-android
androidJvm
switch theme
search in API
network-testing
/
com.stripe.android.networktesting
/
NetworkRule
Network
Rule
class
NetworkRule
:
TestRule
Members
Constructors
Network
Rule
Link copied to clipboard
constructor
(
hostsToTrack
:
List
<
String
>
=
listOf(ApiRequest.API_HOST)
,
validationTimeout
:
Duration
?
=
null
)
Properties
base
Url
Link copied to clipboard
val
baseUrl
:
HttpUrl
Functions
apply
Link copied to clipboard
open
override
fun
apply
(
base
:
Statement
,
description
:
Description
)
:
Statement
client
Socket
Factory
Link copied to clipboard
fun
clientSocketFactory
(
trustAll
:
Boolean
=
false
)
:
SSLSocketFactory
enqueue
Link copied to clipboard
fun
enqueue
(
vararg
requestMatcher
:
RequestMatcher
,
responseFactory
:
(
MockResponse
)
->
Unit
)
fun
enqueue
(
vararg
requestMatcher
:
RequestMatcher
,
responseFactory
:
(
TestRecordedRequest
,
MockResponse
)
->
Unit
)
validate
Link copied to clipboard
fun
validate
(
)