mirror of
https://github.com/rocky-linux/peridot.git
synced 2024-11-14 17:51:25 +00:00
1.3 KiB
1.3 KiB
0.2.x
0.2.0
Improvements:
-
NewClient
supports receiving a list ofOption
s that modify clients behavior.
Initial supported options are:HttpClient(*http.Client)
- set customhttp.Client
to be usedHeaders(map[string]string)
- set custom headers to use in every request (kudos: @Nightapes)UserAgent(string)
- set User-Agent identification to be used (#6). This is a shortcut for just settingUser-Agent
custom header
Deprecations:
NewCustomClient
is deprecated in favor ofNewClient(string, ...Option)
withHttpClient(*http.Client)
option. This method will be removed in future versions.
0.1.2
Improvements to parsing logic for responses:
- If response struct members are in snake-case - Go struct should have member in camel-case
- It is now possible to use type aliases when decoding a response (#1)
- It is now possible to use pointers to fields, without getting an error (#2)
0.1.1
Mainly documentation and internal refactoring:
- Made
Encoder
andDecoder
into interfaces with correspondingStdEncoder
/StdDecoder
. - Removal of intermediate objects in
Codec
0.1.0
Initial release version of XML-RPC client.
- Support for all XML-RPC types both encoding and decoding.
- A client implementation based on
net/rpc
for familiar interface. - No external dependencies (except testing code dependencies)