NAME
Astro::SpaceTrack::Dumper - Dump HTTP responses for replay during testing
SYNOPSIS
The following code must be run from the Astro-SpaceTrack base directory:
use lib 'inc';
use Astro::SpaceTrack::Dumper;
my $st = Astro::SpaceTrack::Dumper->new();
$st->shell( @ARGV );
DESCRIPTION
This Perl class is private to the Astro-SpaceTrack distribution, and will be modified or retracted without notice. Any documentation is for the benefit of the author.
This Perl subclass of Astro::SpaceTrack overrides the parent class' code to dump HTTP::Response objects. Instead of dumping them to standard out, they are written to files which Mock::LWP::UserAgent can read to simulate Space Track queries without actually making them.
METHODS
This class supports the following protected methods:
__dump_response
$st->__dump_response( $resp );
This override of the superclass' method adds the given response to the Mock::LWP::UserAgent data file.
ATTRIBUTES
This class has no additional attributes.
SEE ALSO
SUPPORT
Support is by the author. Please file bug reports at https://rt.cpan.org/Public/Dist/Display.html?Name=Astro-SpaceTrack, https://github.com/trwyant/perl-Astro-SpaceTrack/issues/, or in electronic mail to the author.
AUTHOR
Thomas R. Wyant, III wyant at cpan dot org
COPYRIGHT AND LICENSE
Copyright (C) 2014-2026 by Thomas R. Wyant, III
This program is free software; you can redistribute it and/or modify it under the same terms as Perl 5.10.0. For more details, see the full text of the licenses in the files LICENSE-Artistic and LICENSE-GPL.
This program is distributed in the hope that it will be useful, but without any warranty; without even the implied warranty of merchantability or fitness for a particular purpose.