From 4936c22b5fbfc7c1f6a4c9ac5c3de400a28ef709 Mon Sep 17 00:00:00 2001 From: Olaf Alders Date: Wed, 14 Aug 2013 00:02:46 -0400 Subject: Fixes typos. --- lib/Net/HTTP/Spore.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lib') diff --git a/lib/Net/HTTP/Spore.pm b/lib/Net/HTTP/Spore.pm index d3b2165..0802f24 100644 --- a/lib/Net/HTTP/Spore.pm +++ b/lib/Net/HTTP/Spore.pm @@ -180,7 +180,7 @@ Some specifications for well-known services are available L and B. The client will read the specification file to create a appropriate methods to interact with the API. +First you need to create a client. This can be done using two methods, B and B. The client will read the specification file to create the appropriate methods to interact with the API. =head2 MIDDLEWARES @@ -192,7 +192,7 @@ or only on some path $client->enable_if(sub{$_->[0]->path =~ m!/path/to/json/stuff!}, 'Format::JSON'); -For very simple middlewares, you can simple pass in an anonymous function +For very simple middlewares, you can simply pass in an anonymous function $client->enable( sub { my $request = shift; ... } ); -- cgit 1.4.1 From 387048fac3c2f16232d5bb3b41a949b5a95a5bf5 Mon Sep 17 00:00:00 2001 From: Olaf Alders Date: Wed, 14 Aug 2013 00:03:57 -0400 Subject: Re-wrap some documentation. --- lib/Net/HTTP/Spore.pm | 31 ++++++++++++++++++++----------- 1 file changed, 20 insertions(+), 11 deletions(-) (limited to 'lib') diff --git a/lib/Net/HTTP/Spore.pm b/lib/Net/HTTP/Spore.pm index 0802f24..e8c6c28 100644 --- a/lib/Net/HTTP/Spore.pm +++ b/lib/Net/HTTP/Spore.pm @@ -172,19 +172,24 @@ sub _add_methods { This module is an implementation of the SPORE specification. -To use this client, you need to use or to write a SPORE specification of an API. -A description of the SPORE specification format is available at +To use this client, you need to use or to write a SPORE specification of an +API. A description of the SPORE specification format is available at L -Some specifications for well-known services are available L. +Some specifications for well-known services are available +L. =head2 CLIENT CREATION -First you need to create a client. This can be done using two methods, B and B. The client will read the specification file to create the appropriate methods to interact with the API. +First you need to create a client. This can be done using two methods, +B and B. The client will read the specification +file to create the appropriate methods to interact with the API. =head2 MIDDLEWARES -It's possible to activate some middlewares to extend the usage of the client. If you're using an API that discuss in JSON, you can enable the middleware L. +It's possible to activate some middlewares to extend the usage of the client. +If you're using an API that discuss in JSON, you can enable the middleware +L. $client->enable('Format::JSON'); @@ -202,9 +207,9 @@ For very simple middlewares, you can simply pass in an anonymous function =item new_from_spec($specification_file, %args) -Create and return a L object, with methods -generated from the specification file. The specification file can -either be a file on disk or a remote URL. +Create and return a L object, with methods generated +from the specification file. The specification file can either be a file on +disk or a remote URL. =item new_from_string($specification_string, %args) @@ -215,15 +220,19 @@ generated from a JSON specification string. =head2 TRACING -L provides a way to trace what's going on when doing a request. +L provides a way to trace what's going on when doing a +request. =head3 Enabling Trace -You can enable tracing using the environment variable B. You can also enable tracing at construct time by adding B 1> when calling B. +You can enable tracing using the environment variable B. You can +also enable tracing at construct time by adding B 1> when calling +B. =head3 Trace Output -By default output will be directed to B. You can specify another default output: +By default output will be directed to B. You can specify another +default output: SPORE_TRACE=1=log.txt -- cgit 1.4.1