248 Commits
Author SHA1 Message Date
Patrick Griffis 14ccc71c73 session: Forbid multiple features of the same type to be added
This can cause accidental conflicts and doesn't seem to be valuable
with the current features.
2021-05-27 08:51:19 +00:00
Patrick Griffis 1a1d29c311 Add initial HTTP2 backend 2021-05-16 15:28:26 +02:00
Patrick Griffis 04624568cb docs: Minor typo fixes 2021-05-15 10:51:58 -05:00
Carlos Garcia Campos fcbbcf20af sniffer: remove unused bytes for sniffing from SoupMessage
It's set by the sniffer but never used. Also remove
soup_content_sniffer_get_buffer_size() that is only used by sniffer
stream and always returns 512
2021-05-14 10:45:14 +02:00
Diego Pino Garcia 500098eb42 meson: Fix generation of gtk-doc documents and enable it in CI
It seem Gtk-doc doesn't interpret escaped parenthesis in 'ignore-decorators' as
parenthesis characters, but as grouping operators. What is happening is
that the regular expression for matching strings like 'SOUP_DEPRECATED_IN_3_0_FOR(f)'
is doing an extra matching, causing an error in parsing.

Gtk-doc has code in place for expanding an ignore-decorator expression using
parenthesis to '\(\w*\)'.
2021-05-10 15:59:41 +08:00
Carlos Garcia Campos 689e072db5 message: add API to get the remote address of a SoupMessage 2021-04-30 15:18:45 +00:00
Carlos Garcia Campos d731e7697d Rename SoupClientMessageIOData as SoupClientMessageIOHTTP1 2021-04-30 16:37:07 +02:00
Carlos Garcia Campos d496a67790 Turn soup-message-io into an interface 2021-04-30 16:34:20 +02:00
Patrick Griffis 654746aff0 Pull SoupMessageIOSource into its own file 2021-04-27 11:27:04 +02:00
Carlos Garcia Campos 7f208403f6 message: rename tls-certificate and tls-certificate-errors properties
As tls-peer-certificate and tls-peer-certificate-errors. It's consistent
with GLib API and will avoid confusion with client side certificates
when support is added.
2021-04-20 14:17:34 +00:00
Patrick Griffis 6ba415885e docs: Add clarification on threading 2021-04-17 14:35:43 -05:00
Carlos Garcia Campos 2329dc8168 metrics: add support for size metrics 2021-04-14 11:45:03 +02:00
Carlos Garcia Campos d7ff300311 Add support for collecting metrics 2021-04-14 11:35:38 +02:00
Patrick Griffis 78e785299e Add soup_message_get_connection_id() API
This is useful for WebKit to show in its inspector for easy debugging.
2021-04-09 08:40:08 +00:00
Carlos Garcia Campos bed823d124 message: rename options-ping property as is-options-ping
And add public getter, setter and constructor.
2021-03-29 14:55:22 +02:00
Carlos Garcia Campos 34020dde1b Rename soup_message_headers_free as soup_message_headers_unref
And soup_message_headers_copy as soup_message_headers_ref that is now
public.
2021-03-26 09:51:31 +01:00
Carlos Garcia Campos 2f965b4cba server: rename soup_message_body_free as soup_message_body_unref
And copy() as ref() that is now public.
2021-03-26 09:51:31 +01:00
Carlos Garcia Campos e61b85db27 docs: fix documentation errors 2021-03-26 09:50:41 +01:00
Patrick Griffis 7654deb41c docs: Remove outdated logging note 2021-03-11 11:51:21 -06:00
Daniel Kolesa c61f62f9ba logger: re-add support for logging request/response bodies 2021-03-09 14:29:49 +01:00
Patrick Griffis 0335eb08db Remove 2.99 version macros
The first API will be 3.0
2021-03-05 12:23:28 -06:00
Robert Ancell 8e7652a2f9 Add a method to override the remote connection.
This allows using a Unix socket to communicate on.

Fixes https://gitlab.gnome.org/GNOME/libsoup/-/issues/75
2021-03-05 09:07:02 +00:00
Carlos Garcia Campos b134ae251e Add new api to preconnect to a given uri
A new connection is started that can be reused by a future request for
the same host. This is needed by WebKit to implement link preconnect
https://w3c.github.io/resource-hints/#preconnect
2021-03-05 09:43:10 +01:00
Carlos Garcia Campos b9b421d2e1 session: remove the basic APIs
Now that we have soup_session_send_and_read() the only difference is
that we need to build a SoupMessage first.

Fixes #216
2021-03-04 18:19:59 +01:00
Carlos Garcia Campos 78456405a2 session: add soup_session_get_async_result_message
This is useful to get the SoupMessage of an async operation from the
ready callback.
2021-03-04 11:14:09 +01:00
Carlos Garcia Campos 7033879bcf session: add soup_session_send_and_read APIs
This is convenient API to send a message and read its body into a
GBytes. This should replace the basic APIs since it covers the same use
case, but using a SoupMessage instead of a URI and with ore flexibility.
2021-03-03 15:31:28 +01:00
Carlos Garcia Campos 077d518d2c Remove SoupMessageQueue
We can just use a GQueue instead now that we don't try to support
multiple threads
2021-02-26 13:37:50 +01:00
Patrick Griffis 0388ea47f1 2.99.1 2021-02-23 14:27:20 -06:00
Carlos Garcia Campos 587e43cf50 session: add public getters and setters for the SoupSession properties
Also make max-conns and max-conns-per-host construct only and ensure all
setters emit the GObject::notify signal when the value changes.
2021-02-23 12:58:09 +01:00
Patrick Griffis 33b07391bb docs: Remove incorrect redirect docs
These changes never happened.
2021-02-22 13:59:50 -06:00
Carlos Garcia Campos 111ae4ebe7 Remove http and https aliases support
It doesn't seem to be used. If needed we can just bring it back in the
future.
2021-02-11 12:19:19 +00:00
Patrick Griffis 8fe7e1ad46 docs: Update server docs 2021-01-09 14:40:18 -06:00
Patrick Griffis aaee0a9fa0 Add soup_server_message_get_reason_phrase() to match SoupMessage 2021-01-09 14:40:18 -06:00
Patrick Griffis 6a2d9585d8 docs: Various changes from feedback 2021-01-09 13:18:00 -06:00
Carlos Garcia Campos 1d1a06b588 docs: add more 2.90 missing symbols to sections.txt 2021-01-07 15:31:00 +01:00
Carlos Garcia Campos 6d8796513d docs: add SOUP_VERSION_2_90 symbol to sections.txt 2021-01-07 15:23:40 +01:00
Patrick Griffis 6726b6afd1 Remove soup_uri_get_port_with_default()
The latest GLib handles this for us
2020-12-13 12:40:18 -06:00
Patrick Griffis 48e48a1b4f docs: More progress on improving tutorial 2020-12-08 15:12:59 -06:00
Patrick Griffis daed59a433 docs: Add migration chapter 2020-12-07 15:20:10 -06:00
Patrick Griffis 4db217c702 SoupSessionFeature: Change to private interface 2020-12-01 16:01:59 -06:00
Patrick Griffis 924069e946 Remove/privitize no longer working redirect APIs
A replacement will need to be made
2020-11-25 12:13:21 -06:00
Patrick Griffis ec9ece2ec0 Remove all 2.x version macros 2020-11-25 11:51:17 -06:00
Carlos Garcia Campos 3fb38248dd uri-utils: add soup_uri_copy()
It's a generic API to copy a GUri, but updating the given components.
2020-11-20 11:09:23 +01:00
Carlos Garcia Campos 9f262586f4 session: make soup_session_cancel_message() private 2020-11-15 15:06:05 +01:00
Carlos Garcia Campos cc5d147c1a message: make status-code and reason-phrase properties read only
Now that status code is only used for HTTP values, there's no reason for
users to set a status
2020-11-15 15:06:05 +01:00
Carlos Garcia Campos b4b865d8d6 Remove non-HTTP SoupStatus values
Stop using the message status for internal or transport errors and
always use GError for those.
2020-11-15 15:06:01 +01:00
Patrick Griffis ebc6e9569d Restore ability to send/recv OPTIONS * messages
Since GUri does not support an invalid path of just `*` we have to
handle that ourselves.
2020-11-14 19:07:24 +00:00
Patrick Griffis 737eef099c Replace SoupURI with GUri 2020-11-14 19:07:24 +00:00
Patrick Griffis d40538c563 Delete SoupDirectoryInputStream
This is no longer used now that SoupRequest is gone.
2020-11-09 15:36:37 -06:00
Carlos Garcia Campos 03a081c681 message: add convenient API to add, remove and query flags 2020-11-07 19:34:02 +00:00