mirror of
https://gitlab.com/msrd0/gotham-restful.git
synced 2025-05-09 08:00:41 +00:00
Custom HTTP Headers
This commit is contained in:
parent
28ae4dfdee
commit
31f92c07cd
18 changed files with 475 additions and 416 deletions
|
@ -487,7 +487,7 @@ fn expand_endpoint_type(mut ty: EndpointType, attrs: AttributeArgs, fun: &ItemFn
|
|||
handle_content = quote!(#handle_content.await);
|
||||
}
|
||||
if is_no_content {
|
||||
handle_content = quote!(#handle_content; ::gotham_restful::NoContent)
|
||||
handle_content = quote!(#handle_content; <::gotham_restful::NoContent as ::std::default::Default>::default())
|
||||
}
|
||||
|
||||
if let Some(arg) = args.iter().find(|arg| arg.ty.is_database_conn()) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue