File tree 4 files changed +6
-5
lines changed 4 files changed +6
-5
lines changed Original file line number Diff line number Diff line change @@ -347,11 +347,11 @@ impl HttpError {
347
347
/// If this error does not already have a header map (`self.header_map` is
348
348
/// `None`), this method creates one.
349
349
///
350
- /// Unlike [`HttpError::set_header `], this method takes `self` by value,
350
+ /// Unlike [`HttpError::add_header `], this method takes `self` by value,
351
351
/// allowing it to be chained to form an expression that returns an
352
352
/// `HttpError`. However, because this takes `self` by value, returning an
353
353
/// error for an invalid header name or value will discard the `HttpError`.
354
- /// To avoid this, use [`HttpError::set_header `] instead.
354
+ /// To avoid this, use [`HttpError::add_header `] instead.
355
355
///
356
356
/// # Returns
357
357
///
Original file line number Diff line number Diff line change @@ -16,7 +16,7 @@ use std::fmt;
16
16
/// Alternatively, constants are provided for known error status codes, such as
17
17
/// [`ErrorStatusCode::BAD_REQUEST`], [`ErrorStatusCode::NOT_FOUND`],
18
18
/// [`ErrorStatusCode::INTERNAL_SERVER_ERROR`], and so on, including those in
19
- /// the IANA HTTP Status Code Registry](
19
+ /// the [ IANA HTTP Status Code Registry](
20
20
/// https://www.iana.org/assignments/http-status-codes/http-status-codes.xhtml).
21
21
/// Using these constants avoids the fallible conversion from an
22
22
/// [`http::StatusCode`].
@@ -425,7 +425,7 @@ impl_status_code_wrapper! {
425
425
///
426
426
/// Alternatively, constants are provided for known error status codes, such as
427
427
/// [`ClientErrorStatusCode::BAD_REQUEST`],
428
- /// [`ClientErrorStatusCode::NOT_FOUND`], including those in the IANA HTTP
428
+ /// [`ClientErrorStatusCode::NOT_FOUND`], including those in the [ IANA HTTP
429
429
/// Status Code Registry](
430
430
/// https://www.iana.org/assignments/http-status-codes/http-status-codes.xhtml).
431
431
/// Using these constants avoids the fallible conversion from an
Original file line number Diff line number Diff line change @@ -909,6 +909,7 @@ pub use handler::FreeformBody;
909
909
pub use handler:: HttpCodedResponse ;
910
910
pub use handler:: HttpResponse ;
911
911
pub use handler:: HttpResponseAccepted ;
912
+ pub use handler:: HttpResponseContent ;
912
913
pub use handler:: HttpResponseCreated ;
913
914
pub use handler:: HttpResponseDeleted ;
914
915
pub use handler:: HttpResponseError ;
Original file line number Diff line number Diff line change @@ -243,7 +243,7 @@ impl ClientTestContext {
243
243
}
244
244
245
245
/// Temporarily configures the client to expect `E`-typed error responses,
246
- /// rather than [`dropshot::HttpError`] error responses.
246
+ /// rather than [`dropshot::HttpError`][`crate::HttpError`] error responses.
247
247
///
248
248
/// `ClientTestContext` expects that all error responses are
249
249
/// `dropshot::HttpError`. For testing APIs that return other error types, this
You can’t perform that action at this time.
0 commit comments