11e9df2080
chore: upgrade dependencies
2024-07-31 19:06:38 +02:00
7a4ff9bdbd
merge upstream and upgrade go to 1.21
2023-12-03 12:19:53 +01:00
e42f04b51d
Merge remote-tracking branch 'origin/main' into feat/openhome
2023-12-03 12:13:54 +01:00
Andrew Dunham
00783e79ec
httpu: add context.Context and related interface
...
This adds a new interface for httpu that supports a Context, and uses
that context to set a deadline/timeout and also cancel the request if
the context is canceled. Additionally, add a new method to the SSDP
package that takes a ClientInterfaceCtx.
Updates #55
Signed-off-by: Andrew Dunham <andrew@du.nham.ca>
2023-08-29 19:12:39 +01:00
jybp
8ca2329ddb
Use errors.As in test
2023-05-10 17:07:24 +01:00
jybp
c99b664f99
Fix test case
2023-05-10 17:07:24 +01:00
jybp
dc178c5d44
Fix faultcode+faultstring and get UPnPError details
2023-05-10 17:07:24 +01:00
John Beisley
15a204aa25
chore: gofmt.
2023-03-09 18:23:30 +00:00
John Beisley
e5bb4e5154
Include allowed string values in generated services.
2023-03-09 18:23:18 +00:00
John Beisley
1270e56d5f
Fix error naming lint in srvdesc.
2023-03-09 17:08:45 +00:00
John Beisley
51ba21d432
Fix naming of soap/client.HTTPClient.
2023-03-09 16:35:15 +00:00
John Beisley
fe0b17f589
Introduce SOAPError type.
2023-03-09 16:34:46 +00:00
John Beisley
8e5cccc9ac
Fix trivial lints in goupnp2srvgen.
2023-03-09 15:42:29 +00:00
John Beisley
d2cb593349
Include URL to upnpresources.zip in flag help.
2023-03-09 15:40:33 +00:00
Steve Hellwege
9278656124
Allow http.Client used in discovery to be modified (typically for security reasons)
...
[why]
The importing application may have some specific security requrirements that necessitate
a change to the http.Client or http.Transport used when fetching the xml from the UPnp server.
For example, the importing application may want to restrict localhost calls which could be
made by an attack server on the local network.
[how]
Create a global HTTPClient which defaults to http.DefaultClient. This allows the importing
application to modify this global if it wishes to make changes to the http.Client/http.Transport
used when fetching the xml from the UPnP server.
2023-02-12 17:29:00 +00:00
Kz Ho
62bd5c75d8
Add sync.Pool to reuse packet conn buf object
2023-01-18 08:53:09 +00:00
00a824fe48
feat: generate code for openhome
2022-11-01 20:03:30 +01:00
31f6bc38c2
build: upgrade to go 1.19
2022-11-01 20:02:47 +01:00
1a2c6ad5b2
refactor: rename go module
2022-11-01 20:02:13 +01:00
hzy
d8bd5d2d52
More functions support Context
2022-10-02 14:55:49 +01:00
jgould
9723a59812
adding ModelType to Device
2022-08-11 22:53:45 +01:00
John Beisley
23b5557105
Add documentation links to service docs.
2022-06-13 18:06:03 +01:00
John Beisley
befb173f08
Rename package for LANHostConfigManagement:1.
2022-06-13 17:47:17 +01:00
John Beisley
6617fb84e1
Format generated source code.
2022-06-13 17:44:15 +01:00
John Beisley
dd6d6a16d3
Merge branch 'main' of github.com:huin/goupnp
2022-06-13 07:31:14 +01:00
John Beisley
0ff7949387
Remove trailing newline from generated code.
2022-06-13 07:31:03 +01:00
John Beisley
9cff43d4b3
First two generated service code packages.
2022-06-13 07:30:53 +01:00
John Beisley
d15a929f14
Code generation outputs to files.
2022-06-13 07:28:26 +01:00
John Beisley
ba6ba2725f
Fix go.mod.
2022-06-11 08:40:59 +01:00
John Beisley
16c9ddb4ff
Fix broken envelope test.
2022-06-10 18:13:54 +01:00
John Beisley
656e810e54
Integrate soap.Action type with soap/client.
2022-06-10 17:54:04 +01:00
John Beisley
be592a92bd
Rename some fields in TOML DCP manifest.
2022-06-10 07:24:33 +01:00
John Beisley
9d4879e3c6
Move DCP spec manifests out to a TOML file.
2022-06-10 07:20:09 +01:00
John Beisley
3db7296aeb
Generate documentation comments from service template.
2022-06-08 18:13:28 +01:00
John Beisley
91c176e495
Add action container structs with descriptor methods.
2022-06-08 17:53:24 +01:00
John Beisley
0536e2c588
Fix import quoting in service template.
2022-06-08 07:30:01 +01:00
John Beisley
9b16826229
Refactor service template.
2022-06-08 07:05:49 +01:00
John Beisley
ef53d14055
Remove redundant blank lines in generated code.
2022-06-06 18:07:30 +01:00
John Beisley
5a32790ea4
Use manifest package name in generated code.
2022-06-06 18:03:17 +01:00
John Beisley
89dd64b3ce
Remove debug generation code.
2022-06-06 18:01:18 +01:00
John Beisley
e3e16da35f
Initial code to generate service code.
2022-06-06 18:00:39 +01:00
John Beisley
0e8fff04df
Rename goupnp2dcpgen to goupnpsrvgen.
2022-05-27 07:10:15 +01:00
John Beisley
b2bea13720
Rename description packages to replace "scpd" with "srvdesc".
2022-05-27 07:00:09 +01:00
John Beisley
2145a9306f
Add optional field to xmlscpd.Action.
2022-05-25 19:42:48 +01:00
John Beisley
60c40bba41
Fix minor error in goupnp2dcpgen.
2022-05-25 19:41:31 +01:00
John Beisley
4dd2213715
Some initial experimentation with SCPD reading.
2022-05-25 18:27:18 +01:00
John Beisley
cc75a26e13
Test and fix edge cases in map args.
2022-03-31 19:54:33 +01:00
John Beisley
f69c4d0ee2
First draft supporting maps as action args.
2022-03-31 18:09:53 +01:00
John Beisley
5d0813cf55
Rearrange Client.as a helper function.
...
This narrows the API surface of the `Client` type.
2022-03-29 07:36:18 +01:00
John Beisley
ca91893cc0
Fix breakage from merge.
2022-03-26 18:27:03 +00:00