@@ -32,8 +32,7 @@ class HttpInteraction(Interaction):
3232 HTTP interaction. As many elements are shared between the request and
3333 response, this class provides a common interface for both. The functions
3434 intelligently determine whether the element should be added to the request
35- or the response based on whether
36- [`will_respond_with`][pact.interaction.HttpInteraction.will_respond_with]
35+ or the response based on whether [`will_respond_with`][will_respond_with]
3736 has been called.
3837
3938 For example, the following two interactions are equivalent:
@@ -165,9 +164,8 @@ def with_header(
165164
166165 If `None`, then the function intelligently determines whether
167166 the header should be added to the request or the response, based
168- on whether the
169- [`will_respond_with`][pact.interaction.HttpInteraction.will_respond_with]
170- method has been called.
167+ on whether the [`will_respond_with`][will_respond_with] method
168+ has been called.
171169 """
172170 interaction_part = self ._parse_interaction_part (part )
173171 name_lower = name .lower ()
@@ -204,10 +202,10 @@ def with_headers(
204202 - Passing in an iterable of key-value tuples.
205203
206204 - Make multiple calls to this function or
207- [`with_header`][pact.interaction.HttpInteraction. with_header].
205+ [`with_header`][with_header].
208206
209207 See
210- [`with_header`][pact.interaction.HttpInteraction. with_header]
208+ [`with_header`][with_header]
211209 for more information.
212210
213211 Args:
@@ -220,9 +218,8 @@ def with_headers(
220218
221219 If `None`, then the function intelligently determines whether
222220 the header should be added to the request or the response, based
223- on whether the
224- [`will_respond_with`][pact.interaction.HttpInteraction.will_respond_with]
225- method has been called.
221+ on whether the [`will_respond_with`][will_respond_with] method
222+ has been called.
226223 """
227224 if isinstance (headers , dict ):
228225 headers = headers .items ()
@@ -239,10 +236,9 @@ def set_header(
239236 r"""
240237 Add a header to the request.
241238
242- Unlike
243- [`with_header`][pact.interaction.HttpInteraction.with_header], this
244- function does no additional processing of the header value. This is
245- useful for headers that contain a JSON object.
239+ Unlike [`with_header`][with_header], this function does no additional
240+ processing of the header value. This is useful for headers that contain
241+ a JSON object.
246242
247243 Args:
248244 name:
@@ -257,9 +253,8 @@ def set_header(
257253
258254 If `None`, then the function intelligently determines whether
259255 the header should be added to the request or the response, based
260- on whether the
261- [`will_respond_with`][pact.interaction.HttpInteraction.will_respond_with]
262- method has been called.
256+ on whether the [`will_respond_with`][will_respond_with] method
257+ has been called.
263258 """
264259 pact_ffi .set_header (
265260 self ._handle ,
@@ -287,10 +282,9 @@ def set_headers(
287282 - Passing in an iterable of key-value tuples.
288283
289284 - Make multiple calls to this function or
290- [`with_header`][pact.interaction.HttpInteraction. with_header].
285+ [`with_header`][with_header].
291286
292- See [`set_header`][pact.interaction.HttpInteraction.set_header] for
293- more information.
287+ See [`set_header`][set_header] for more information.
294288
295289 Args:
296290 headers:
@@ -302,8 +296,7 @@ def set_headers(
302296
303297 If `None`, then the function intelligently determines whether
304298 the headers should be added to the request or the response,
305- based on whether the
306- [`will_respond_with`][pact.interaction.HttpInteraction.will_respond_with]
299+ based on whether the [`will_respond_with`][will_respond_with]
307300 method has been called.
308301 """
309302 if isinstance (headers , dict ):
@@ -372,11 +365,9 @@ def with_query_parameters(
372365 - Passing in an iterable of key-value tuples.
373366
374367 - Make multiple calls to this function or
375- [`with_query_parameter`][pact.interaction.HttpInteraction. with_query_parameter].
368+ [`with_query_parameter`][with_query_parameter].
376369
377- See
378- [`with_query_parameter`][pact.interaction.HttpInteraction.with_query_parameter]
379- for more information.
370+ See [`with_query_parameter`][with_query_parameter] for more information.
380371
381372 Args:
382373 parameters:
@@ -393,9 +384,8 @@ def will_respond_with(self, status: int) -> Self:
393384 Set the response status.
394385
395386 Ideally, this function is called once all of the request information has
396- been set. This allows functions such as
397- [`with_header`][pact.interaction.HttpInteraction.with_header]
398- to intelligently determine whether this is a request or response header.
387+ been set. This allows functions such as [`with_header`][with_header] to
388+ intelligently determine whether this is a request or response header.
399389
400390 Alternatively, the `part` argument can be used to explicitly specify
401391 whether the header should be added to the request or the response.
0 commit comments