File tree Expand file tree Collapse file tree
python/core/auto_generated Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -110,8 +110,22 @@ Returns the original network request.
110110%End
111111
112112 void setContent( const QByteArray &content );
113+ %Docstring
114+ Sets the reply content. This is not done by default, as reading network reply content
115+ can only be done once.
116+
117+ .. seealso:: :py:func:`content`
118+ %End
113119
114120 QByteArray content() const;
121+ %Docstring
122+ Returns the reply content. This is not available by default, as reading network reply content
123+ can only be done once.
124+
125+ Blocking network requests (see :py:class:`QgsBlockingNetworkRequest`) will automatically populate this content.
126+
127+ .. seealso:: :py:func:`setContent`
128+ %End
115129
116130};
117131
Original file line number Diff line number Diff line change @@ -139,8 +139,22 @@ class CORE_EXPORT QgsNetworkReplyContent
139139 */
140140 QNetworkRequest request () const { return mRequest ; }
141141
142+ /* *
143+ * Sets the reply content. This is not done by default, as reading network reply content
144+ * can only be done once.
145+ *
146+ * \see content()
147+ */
142148 void setContent ( const QByteArray &content ) { mContent = content; }
143149
150+ /* *
151+ * Returns the reply content. This is not available by default, as reading network reply content
152+ * can only be done once.
153+ *
154+ * Blocking network requests (see QgsBlockingNetworkRequest) will automatically populate this content.
155+ *
156+ * \see setContent()
157+ */
144158 QByteArray content () const { return mContent ; }
145159
146160 private:
You can’t perform that action at this time.
0 commit comments