SoupSessionSync

## SoupSessionSync SoupSessionSync — (Deprecated) SoupSession for blocking I/O in multithreaded programs. |

## Synopsis

    #include <libsoup/soup.h>

                        SoupSessionSync;
    SoupSession *       soup_session_sync_new               (void);
    SoupSession *       soup_session_sync_new_with_options  (const char *optname1,
                                                             ...);

## Object Hierarchy

      GObject
       +----SoupSession
             +----SoupSessionSync

## Description

SoupSessionSync is an implementation of SoupSession that uses synchronous I/O, intended for use in multi-threaded programs.

As of libsoup 2.42, this is deprecated in favor of the plain SoupSession class (which uses both asynchronous and synchronous I/O, depending on the API used). See the porting guide.

## Details

### SoupSessionSync

    typedef struct _SoupSessionSync SoupSessionSync;

### soup_session_sync_new ()

    SoupSession *       soup_session_sync_new               (void);

### Warning

`soup_session_sync_new` is deprecated and should not be used in newly-written code. SoupSessionSync is deprecated; use a plain SoupSession, created with `soup_session_new()`. See the porting guide.

Creates an synchronous SoupSession with the default options.

Returns : | the new session.

### soup_session_sync_new_with_options ()

    SoupSession *       soup_session_sync_new_with_options  (const char *optname1,
                                                             ...);

### Warning

`soup_session_sync_new_with_options` is deprecated and should not be used in newly-written code. SoupSessionSync is deprecated; use a plain SoupSession, created with `soup_session_new_with_options()`. See the porting guide.

Creates an synchronous SoupSession with the specified options.

`optname1` : | name of first property to set
`...` : | value of `optname1`, followed by additional property/value pairs
Returns : | the new session.