File tree Expand file tree Collapse file tree 4 files changed +26
-1
lines changed Expand file tree Collapse file tree 4 files changed +26
-1
lines changed Original file line number Diff line number Diff line change 1
1
Revision history for URI
2
2
3
3
{{$NEXT}}
4
+ - added URI::nntps (GH#82)
4
5
5
6
5.07 2021-01-29 22:52:20Z
6
7
- s/perl.com/example.com/ in examples and tests (GH#81) (Olaf Alders)
Original file line number Diff line number Diff line change @@ -926,6 +926,10 @@ access the path: $uri->group and $uri->message.
926
926
927
927
See I<news > scheme.
928
928
929
+ =item B<nntps > :
930
+
931
+ See I<news > scheme.
932
+
929
933
=item B<pop > :
930
934
931
935
The I<pop > URI scheme is specified in RFC 2384. The scheme is used to
Original file line number Diff line number Diff line change
1
+ package URI::nntps ;
2
+
3
+ use strict;
4
+ use warnings;
5
+
6
+ our $VERSION = ' 5.08' ;
7
+
8
+ use parent ' URI::nntp' ;
9
+
10
+ sub default_port { 563 }
11
+
12
+ sub secure { 1 }
13
+
14
+ 1;
Original file line number Diff line number Diff line change 1
1
use strict;
2
2
use warnings;
3
3
4
- print " 1..7 \n " ;
4
+ print " 1..8 \n " ;
5
5
6
6
use URI ();
7
7
@@ -49,3 +49,9 @@ print "not " unless $u->group eq "no.perl" &&
49
49
$u -> port == 563;
50
50
print " ok 7\n " ;
51
51
52
+ $u = URI-> new(" nntps://nntps.online.no/no.perl" );
53
+
54
+ print " not " unless $u -> group eq " no.perl" &&
55
+ $u -> host eq " nntps.online.no" &&
56
+ $u -> port == 563;
57
+ print " ok 8\n " ;
You can’t perform that action at this time.
0 commit comments