Book Image

ServiceStack 4 Cookbook

Book Image

ServiceStack 4 Cookbook

Overview of this book

Table of Contents (18 chapters)
ServiceStack 4 Cookbook
About the Authors
About the Reviewers

Chapter 6. Filters and Validators

In this chapter, we will go through the following recipes:

  • Creating static validation rules using fluent syntax

  • Returning meaningful HTTP error messages

  • Adding custom headers via response filter

  • Restricting file uploads by type using filters

  • Creating a user-configurable HTTP callback service using a response filter

  • Applying a rate limit to a web service endpoint using a request filter

  • Restrict user actions with session details using a validator