Skip to content

Instantly share code, notes, and snippets.

class CurlInterceptor extends Interceptor {
@override
void onRequest(RequestOptions options, RequestInterceptorHandler handler) {
try {
final qp = options.queryParameters;
final h = options.headers;
final d = options.data;
final curl =
'curl -X ${options.method} \'${options.baseUrl}${options.path}' +
(qp.length != 0 ? qp.keys.fold('', (value, key) => '$value${value.length == 0 ? '?' : '&'}$key=${qp[key]}\'') : '\'') +
╰─ command fastlane test ─╯
[15:51:38]: -------------------------------------------------
[15:51:38]: --- Step: Verifying required fastlane version ---
[15:51:38]: -------------------------------------------------
[15:51:38]: Your fastlane version 2.28.3 matches the minimum requirement of 2.28.3 ✅
[15:51:38]: ------------------------------
[15:51:38]: --- Step: default_platform ---
[15:51:38]: ------------------------------
[15:51:38]: Driving the lane 'ios test' 🚀
[15:51:38]: -----------------------
#!/usr/bin/env bash
# Use this script to test if a given TCP host/port are available
cmdname=$(basename $0)
echoerr() { if [[ $QUIET -ne 1 ]]; then echo "$@" 1>&2; fi }
usage()
{
cat << USAGE >&2