@extends('layouts.base') @section('content') @section('breadcrumb') @endsection
@if(session('status')) @endif

Appel HTTP #{{ $httpRequest->id }} @php $methodColors = [ 'GET' => 'info', 'POST' => 'success', 'PUT' => 'warning', 'PATCH' => 'primary', 'DELETE' => 'danger', ]; $color = $methodColors[$httpRequest->method] ?? 'secondary'; @endphp {{ $httpRequest->method }} @if($httpRequest->response_code) @php $codeColor = 'success'; if ($httpRequest->response_code >= 400 && $httpRequest->response_code < 500) { $codeColor = 'warning'; } elseif ($httpRequest->response_code >= 500) { $codeColor = 'danger'; } @endphp HTTP {{ $httpRequest->response_code }} @endif

Créé le {{ $httpRequest->created_at->format('d/m/Y à H:i:s') }} @if($httpRequest->response_at) • Réponse reçue le {{ $httpRequest->response_at->format('d/m/Y à H:i:s') }} @php $duration = $httpRequest->created_at->floatDiffInSeconds($httpRequest->response_at) * 1000; @endphp ({{ number_format($duration, 0) }} ms) @endif

@if($httpRequest->token)

Token : {{ $httpRequest->token }}

@endif
Informations générales
{{ $httpRequest->url }}
@php $methodColors = [ 'GET' => 'info', 'POST' => 'success', 'PUT' => 'warning', 'PATCH' => 'primary', 'DELETE' => 'danger', ]; $color = $methodColors[$httpRequest->method] ?? 'secondary'; @endphp {{ $httpRequest->method }}
@if($httpRequest->response_code) @php $codeColor = 'success'; if ($httpRequest->response_code >= 400 && $httpRequest->response_code < 500) { $codeColor = 'warning'; } elseif ($httpRequest->response_code >= 500) { $codeColor = 'danger'; } @endphp {{ $httpRequest->response_code }} @else Non disponible @endif
{{ $httpRequest->created_at->format('d/m/Y H:i:s') }}
@if($httpRequest->response_at) {{ $httpRequest->response_at->format('d/m/Y H:i:s') }} @else Non disponible @endif
@if($httpRequest->response_at && $httpRequest->created_at)
@php $duration = $httpRequest->created_at->floatDiffInSeconds($httpRequest->response_at) * 1000; @endphp {{ number_format($duration, 0) }} ms
@endif
Headers
@if($httpRequest->header && is_array($httpRequest->header) && count($httpRequest->header) > 0)
@foreach($httpRequest->header as $key => $value) @endforeach
Clé Valeur
{{ $key }} @if(is_array($value)) {{ json_encode($value, JSON_PRETTY_PRINT) }} @else {{ $value }} @endif
@else

Aucun header enregistré

@endif
Payload (Requête)
@if($httpRequest->payload)
{{ is_array($httpRequest->payload) ? json_encode($httpRequest->payload, JSON_PRETTY_PRINT | JSON_UNESCAPED_UNICODE) : $httpRequest->payload }}
@else

Aucun payload

@endif
Réponse HTTP
@if($httpRequest->response_content)
{{ $httpRequest->response_content }}
@else

Aucune réponse enregistrée

@endif
@endsection