260 Commits
Author SHA1 Message Date
Patrick Griffis 9b2435c428 docs: Fix stream type for soup_message_set_request_body in migration guide
#255
2021-12-17 00:42:28 +00:00
Patrick Griffis 63f778a9f0 3.0.0 2021-09-18 10:41:06 -05:00
Patrick Griffis 23c413fdcb ci: Install glib and libsoup2 documentation for website 2021-09-17 10:39:54 -05:00
Jens Georg 28a3eac331 docs: g_uri_to_string -> g_uri_to_string_partial
g_uri_to_string does not take two parameters
2021-07-26 14:47:10 +00:00
Patrick Griffis d4171ba3a3 docs: Rewrite client certificate example 2021-07-14 15:01:29 -05:00
Carlos Garcia Campos 260a370790 message: add API to get TLS ciphersuite name and protocol version 2021-07-08 18:40:37 +00:00
Carlos Garcia Campos 0821e8967a server: add support for client side certificates 2021-06-15 16:48:45 +00:00
Carlos Garcia Campos c8b5ae4351 server: remove soup_server_set_ssl_cert_file()
It's changing a construct-only property by providing API to create a
GTlsCertificate. This patch makes SoupServer:tls-certificate a readable
and writable property and adds a public getter and setter.
2021-06-15 16:48:45 +00:00
Carlos Garcia Campos a90c442df5 message: make soup_message_set_method public
It's a public readwrite property, so there no reason for the getter to
be private.
2021-06-07 19:06:41 +02:00
Carlos Garcia Campos 18ef5ed916 headers: stop interning all header names
To still optimize the headers handling we now follow an approach similar
to the WebKit one. We use gperf to generate a fast conversion from
commonly used name headers to an enum value. Headers are now stored in
two arrays, one for common headers where the enum value is used as the
name, and another one for uncommon headers where the name string is
stored duplicated and g_ascii_strcasecmp() is used for comparisons. Both
arrays are created on demand with preallocated space for 6 headers. This
changes a bit the order in which headers are iterated, because we
iterate the common headers first and then the uncommon ones.

Fixes #111
2021-06-04 10:47:39 +02:00
Carlos Garcia Campos fed77d0487 message: add API to handle password protected client certificates
Implement GTlsInteraction::ask_password to expose another signal in
SoupMessage to ask the user for ther password.
2021-06-02 07:22:46 +00:00
Carlos Garcia Campos d72d9eabd7 message: add API to handle client side certificates
When SoupSession doesn't have a GTlsInteraction set, SoupMessage can
handle client side certificates. A new signal request-certificate is
emitted when the connection requests a certificate and
soup_message_set_tls_client_certificate() can be called to complete the
request.
2021-06-02 07:22:46 +00:00
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