Comments (1)
A bit late for a reply, but you could create your own Resty option that changes the header.
class OverrideAccept extends Resty.Option {
@Override public void apply(URLConnection aConnection) {
aConnection.setRequestProperty("Accept", "text/html");
}
}
Then pass an instance to this option into your Resty instance
from resty.
Related Issues (20)
- Cookie usage examples? HOT 3
- POST HOT 3
- Add missing HTTP verbs
- Json Delete HOT 5
- Resty source compilation error - getAcceptedTypes()
- Resty post request issue
- Ability to read content after catching exception HOT 3
- Default HostnameVerifier for ignoreAllCerts? HOT 3
- connection timeout HOT 1
- Exceptions for standard http code responses
- https://github.com/Dreampie/resty restful server.
- Allow multipart PUT HOT 1
- Allow setting a base url HOT 1
- JavaCC dependency has class in root package - causes OSGI build failure. HOT 4
- Add possibility to retrieve HTTP status code HOT 1
- Problem checking if given string is equal to a JSONObject's property HOT 2
- headers and parameters
- Please remove me from README.rst
- No example of authenticate method in README HOT 1
- Proxy with authentication
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from resty.