Skip to content

Commit 79848da

Browse files
.NET Foundation update (#1934)
1 parent 980400f commit 79848da

File tree

89 files changed

+120
-331
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

89 files changed

+120
-331
lines changed

LICENSE.txt

+3
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
Copyright (c) .NET Foundation and Contributors
2+
All Rights Reserved
3+
14
Apache License
25
Version 2.0, January 2004
36
http://www.apache.org/licenses/

README.md

+29-7
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,29 @@
11
# RestSharp - Simple .NET REST Client
22

3+
RestSharp is a lightweight HTTP client library. It's a wrapper around `HttpClient`, not a full-fledged client on its own.
4+
5+
What RestSharp adds to `HttpClient`:
6+
- Default parameters of any kind, not just headers
7+
- Add a parameter of any kind to requests, like query, URL segment, header, cookie, or body
8+
- Multiple ways to add a request body, including JSON, XML, and form data
9+
- Built-in serialization and deserilization of JSON and XML
10+
311
## RestSharp vNext
412

513
Finally, RestSharp has moved to `HttpClient`. We also deprecated the following:
6-
- All sync calls in favour of async calls
714
- SimpleJson in favour of `System.Text.Json.JsonSerialzer`
815
- `IRestClient`, `IRestRequest`, and `IRestResponse` in favour of implementing classes
916
- Everything `Http` and `IHttp` as those are just wrappers
1017

1118
Most of the client and some of the request options are now in `RestClientOptions`.
1219

13-
Check [v107 docs](https://restsharp.dev/v107) for more information.
20+
Check [v107+ docs](https://restsharp.dev/v107) for more information.
1421

1522
| :boom: Interfaces rage! |
1623
|:---------------------------|
1724
| Before you start to rage in public about interfaces that are useful for unit-testing HTTP calls,<br>please read [this page](https://restsharp.dev/v107/#mocking). |
1825

26+
## Builds and Packages
1927

2028
### Build
2129

@@ -31,25 +39,38 @@ Check [v107 docs](https://restsharp.dev/v107) for more information.
3139
| stable | [![](https://img.shields.io/nuget/v/RestSharp)](https://www.nuget.org/packages/RestSharp) |
3240
| preview | ![](https://img.shields.io/nuget/vpre/RestSharp) |
3341

34-
### Support
42+
## Code of Conduct
43+
44+
This project has adopted the code of conduct defined by the Contributor Covenant to clarify expected behavior in our community.
45+
For more information see the [.NET Foundation Code of Conduct](https://dotnetfoundation.org/code-of-conduct).
46+
47+
## Support
3548

3649
RestSharp is an open-source project with a single maintainer. Do not expect your issue to be resolved unless it concerns a large group of RestSharp users.
3750
The best way to resolve your issue is to fix it yourself. Fork the repository and submit a pull request.
3851
You can also motivate the maintainer by sponsoring this project.
3952

40-
### Get help
53+
### Contribute
4154

42-
[![Join the chat at https://gitter.im/RestSharp/RestSharp](https://badges.gitter.im/RestSharp/RestSharp.svg)](https://gitter.im/RestSharp/RestSharp?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)
55+
Please read [CONTRIBUTING.md](CONTRIBUTING.md) for details on the process for reporting issues and submitting pull requests.
56+
57+
### Get help
4358

4459
Read the docs: [Official Site][1]
60+
61+
Ask a question on StackOverflow with the tag `restsharp`.
4562

4663
Find RestSharp on Twitter: [@RestSharp][2]
4764

48-
## Contributors
65+
## Community
66+
67+
### .NET Foundation
68+
69+
This project is supported by the [.NET Foundation](https://dotnetfoundation.org).
4970

5071
### Code Contributors
5172

52-
This project exists thanks to all the people who contribute. [[Contribute](CONTRIBUTING.md)].
73+
This project exists thanks to all the people who contribute.
5374
<a href="https://github.com/restsharp/RestSharp/graphs/contributors"><img src="https://opencollective.com/RestSharp/contributors.svg?width=890&button=false" /></a>
5475

5576
### Financial Contributors
@@ -79,3 +100,4 @@ Support this project with your organization. Your logo will show up here with a
79100

80101
[1]: https://restsharp.dev
81102
[2]: https://twitter.com/RestSharp
103+
[3]: https://github.com/restsharp/RestSharp/issues

docs/README.md

+3-1
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,11 @@ features:
1919
details: Send objects as the request body in JSON or XML, or as a form. Upload and download files as bytes or as streams.
2020
- title: Parameters
2121
details: Add query, URL segment, body, form or header parameter using an easy and fluent API
22-
footer: Apache 2.0 Licensed | Copyright © 2009-2022 John Sheehan, Andrew Young, Alexey Zimarev and RestSharp community.
22+
footer: Apache 2.0 Licensed | Copyright (c) .NET Foundation and Contributors
2323
---
2424

2525
RestSharp is probably the most popular HTTP client library for .NET. Featuring automatic serialization and deserialization, request and response type detection, variety of authentications and other useful features, it is being used by hundreds of thousands of projects.
2626

2727
RestSharp passed over 32 million downloads on NuGet, with average daily download count of 10,000. It's being used by many popular OSS projects, including Roslyn and Swagger.
28+
29+
Supported by the [.NET Foundation](https://dotnetfoundation.org).

releasenotes.md

-238
This file was deleted.

src/Directory.Build.props

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
<RepositoryUrl>https://github.com/restsharp/RestSharp.git</RepositoryUrl>
99
<RepositoryType>git</RepositoryType>
1010
<Description>Simple REST and HTTP API Client</Description>
11-
<Authors>John Sheehan, Andrew Young, Alexey Zimarev and RestSharp community</Authors>
11+
<Authors>.NET Foundation and Contributors</Authors>
1212
<UpdateVersionProperties>true</UpdateVersionProperties>
1313
<PublishRepositoryUrl>true</PublishRepositoryUrl>
1414
<IncludeSymbols>true</IncludeSymbols>

src/RestSharp.Serializers.NewtonsoftJson/JsonNetSerializer.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright © 2009-2021 John Sheehan, Andrew Young, Alexey Zimarev and RestSharp community
1+
// Copyright (c) .NET Foundation and Contributors
22
//
33
// Licensed under the Apache License, Version 2.0 (the "License");
44
// you may not use this file except in compliance with the License.

src/RestSharp.Serializers.NewtonsoftJson/RestClientExtensions.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright © 2009-2021 John Sheehan, Andrew Young, Alexey Zimarev and RestSharp community
1+
// Copyright (c) .NET Foundation and Contributors
22
//
33
// Licensed under the Apache License, Version 2.0 (the "License");
44
// you may not use this file except in compliance with the License.

src/RestSharp.Serializers.NewtonsoftJson/WriterBuffer.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright © 2009-2021 John Sheehan, Andrew Young, Alexey Zimarev and RestSharp community
1+
// Copyright (c) .NET Foundation and Contributors
22
//
33
// Licensed under the Apache License, Version 2.0 (the "License");
44
// you may not use this file except in compliance with the License.

src/RestSharp.Serializers.Xml/DeserializeAsAttribute.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright © 2009-2021 John Sheehan, Andrew Young, Alexey Zimarev and RestSharp community
1+
// Copyright (c) .NET Foundation and Contributors
22
//
33
// Licensed under the Apache License, Version 2.0 (the "License");
44
// you may not use this file except in compliance with the License.

src/RestSharp.Serializers.Xml/SerializeAsAttribute.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright © 2009-2021 John Sheehan, Andrew Young, Alexey Zimarev and RestSharp community
1+
// Copyright (c) .NET Foundation and Contributors
22
//
33
// Licensed under the Apache License, Version 2.0 (the "License");
44
// you may not use this file except in compliance with the License.

src/RestSharp.Serializers.Xml/XmlAttributeDeserializer.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright © 2009-2021 John Sheehan, Andrew Young, Alexey Zimarev and RestSharp community
1+
// Copyright (c) .NET Foundation and Contributors
22
//
33
// Licensed under the Apache License, Version 2.0 (the "License");
44
// you may not use this file except in compliance with the License.

src/RestSharp.Serializers.Xml/XmlDeserializer.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright © 2009-2021 John Sheehan, Andrew Young, Alexey Zimarev and RestSharp community
1+
// Copyright (c) .NET Foundation and Contributors
22
//
33
// Licensed under the Apache License, Version 2.0 (the "License");
44
// you may not use this file except in compliance with the License.

src/RestSharp.Serializers.Xml/XmlExtensions.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright © 2009-2021 John Sheehan, Andrew Young, Alexey Zimarev and RestSharp community
1+
// Copyright (c) .NET Foundation and Contributors
22
//
33
// Licensed under the Apache License, Version 2.0 (the "License");
44
// you may not use this file except in compliance with the License.

0 commit comments

Comments
 (0)